Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
contents in different columns
#1
Hi,

I would like to place 2 contents in different columns.
The first column should hold just an image while the other column should be filled with Text/Image.

Is it possible?

Ciao Daniz
Reply
#2
Look in the Templates. They are using as example a "component" called 'sidebar'. You can create more "components, too. And add any content in those extra components and call them seperatly in your theme, thus creating another <div> or whatever with your 2nd-content (even one or more columns).

Code:
<div>
    <?php get_component('sidebar OR whatever name'); ?>
</div>
Reply
#3
Sorry for my late answer...business as usual!

Seems that it´not the solution.
I´m looking more for a second content element than a component.

At page->edit should be 2 tinyMCE and the possibility to upload a headerimage.
Reply
#4
Mike wrote about a way to get different parts on the same page editable with tinyMCE. As for the header image, once this isn’t really connected to the content of a page is it? Please explain a bit more, but my guess is it’s more of a template thing.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply
#5
It is a template thing!

I´m trying to switch the site www.cicompact.de to getsimple.
At http://cicompact.de/getsimple/ you can see my first attempt.

On every page the user should be able to change the image,
the text on the right and the footerimage (not headerimage ;-) ).

I´m working with a table in tinyMCE but as it is not possible to copy pages
this is not a simple solution for my customer.

The footerimage could be done with components but I need 2 tinyMCE per page anyway.

Thanks Daniz
Reply
#6
Why not use the file upload option.

Have the pictures uploaded through the admin panel and then copy the url of those files and hard code them into the template.

Then have the client delete the picture and then upload a new one with the exact name as the last one they deleted.

If that doesn't work, just write a simple upload form with dropdown menus for each page.
IE: mainpage, left image, UPLOAD.

I believe that could easily be done.

If you need two editor panels, good luck with that. It is possible, but your reaching around your back to scratch your knee.

READ MY SIG!!
Clients always want to be able to change the content of their pages, but they are unwilling to do so.

Have you ever coded in your underwear before?
Reply
#7
@internet54 Well...I agree to your sig but the client is still the one who pays me ;-)

Ok, I did it the easy way!

I´ve put the following code in the template file:
<img src="<?php get_site_url(); ?>data/uploads/<?php get_page_slug(); ?>.jpg" />
<img src="<?php get_site_url(); ?>data/uploads/footer_<?php get_page_slug(); ?>.jpg" />

The client just have to upload an image with the name of the page´s slug.

Maybe I will change it to a function with a default image?!

Cheerz Daniz
Reply




Users browsing this thread: 1 Guest(s)