Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom Fields for galleries
#3
islander Wrote:My questions are, I would like to add galleries to some pages (probably with I18N Gallery), but would like to avoid having place holders in the editable section of the page where users my delete them. Apart from adding a new template style, is there another way, possibly with I18N Custom Fields, so that it wouldnt be so easy to screw up?

You can use I18N Custom Fields, add a custom field named e.g. galleryname and add the following to your template (before or after get_content):
Code:
<?php
  $gname = return_custom_field('galleryname');
  if ($gname) get_i18n_gallery($gname);
?>

Or you can use I18N Special Pages, create a special page type for pages with a gallery with a special field galleryname and add similar code (get_special_field) to the view HTML/PHP code field.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply


Messages In This Thread
Custom Fields for galleries - by islander - 2012-05-14, 23:31:10
Custom Fields for galleries - by alienee2 - 2012-05-14, 23:47:22
Custom Fields for galleries - by mvlcek - 2012-05-14, 23:47:25
Custom Fields for galleries - by islander - 2012-05-15, 00:54:52



Users browsing this thread: 1 Guest(s)