Posts: 8
Threads: 3
Joined: Oct 2009
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
Posts: 53
Threads: 1
Joined: Nov 2009
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>
Posts: 8
Threads: 3
Joined: Oct 2009
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.
Posts: 972
Threads: 27
Joined: Aug 2009
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.
Posts: 8
Threads: 3
Joined: Oct 2009
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
Posts: 339
Threads: 27
Joined: Nov 2009
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!!
Posts: 8
Threads: 3
Joined: Oct 2009
@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