Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
adding a sidebar photo?
#1
I'd like my client to be able to add a photos in a column to the right of her page's text. It SEEMS the sidebar would be the way to do it. But at the same time I don't know how she'd add a photo to the sidebar and also there's the complexity of calling a different sidebar from every page of the site. i.e. get_component('sidebar-'.get_page_slug(false));

I'm wondering if I'm making this way more complicated than it needs to be?

I've attached an image that shows the basic layout of her site.


Attached Files Thumbnail(s)
   
Reply
#2
You could use I18N Custom Fields to add an image field to pages (users will be able to select uploaded images)

Then use something like this in the sidebar:
Code:
<?php if (return_custom_field('image')) { ?>
  <img src="<?php get_custom_field('image'); ?>" />
<?php } ?>
Reply
#3
There are many ways of doing this stuff. Not too sure if it is one photo or many, in addition or instead of the existing sidebar content, a thumbnail link or just a small image, or indeed how capable and confident your client might be...

... but I like to use the system for different sidebars here if there is more than one special sidebar.
Reply
#4
Thanks Carlos and Timbow! I'll check out your suggestions.

My client (and future client's) will most likely have a pretty basic skills set for this kind of stuff. So I'll need to keep it simple. Ideally I'd have a column that could have more than one photo along with some text. They can certainly upload properly-sized photo to "Files" and then insert it from there.

I'd prefer to have the client open one page for editing and within that one page would be two boxes of distinct content (main area and side-bar). I haven't seen anything like that for GetSimple CMS.
Reply
#5
There is a plugin 'Simple Input Tabs' that will do what you want. It had some issues of conflicts with other plugins but if it's a simple site you should find it works well. Backup first.

Otherwise:
Copy template.php and rename to make a special template for your sidebar gallery pages.
In that template replace <?php get_component('sidebar'); ?> with <?php getPageContent('special'); ?> .
Make a page with the slug 'special' .
Then you can edit the special sidebar content as a page with the ckeditor, inserting thumbnail to image links or whatever.
You might want to configure the ckeditor to make it more useful.

HTH
Reply
#6
Thanks Timbow. I'll make a note about Simple Input Tabs. For this project Carlos' suggestion to use I18N Custom Fields is working well for me. I'm able to add a few photo fields to a right-hand column of the page, as well as a field for a block of text.

(2013-08-20, 03:21:23)Timbow Wrote: There is a plugin 'Simple Input Tabs' that will do what you want. It had some issues of conflicts with other plugins but if it's a simple site you should find it works well. Backup first.

Otherwise:
Copy template.php and rename to make a special template for your sidebar gallery pages.
In that template replace <?php get_component('sidebar'); ?> with <?php getPageContent('special'); ?> .
Make a page with the slug 'special' .
Then you can edit the special sidebar content as a page with the ckeditor, inserting thumbnail to image links or whatever.
You might want to configure the ckeditor to make it more useful.

HTH
Reply
#7
Fantastic! Used this plugin "Simple Input Tabs" for another project. Worked great. Thanks again.

(2013-08-20, 03:21:23)Timbow Wrote: There is a plugin 'Simple Input Tabs' that will do what you want. It had some issues of conflicts with other plugins but if it's a simple site you should find it works well. Backup first.

Otherwise:
Copy template.php and rename to make a special template for your sidebar gallery pages.
In that template replace <?php get_component('sidebar'); ?> with <?php getPageContent('special'); ?> .
Make a page with the slug 'special' .
Then you can edit the special sidebar content as a page with the ckeditor, inserting thumbnail to image links or whatever.
You might want to configure the ckeditor to make it more useful.

HTH
Reply




Users browsing this thread: 1 Guest(s)