Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom Fields for galleries
#2
you could make a custom field, a dropdown with a list of the galleries and then on the page editor the user could select which, if any, gallery to show on that page. It depends on where that gallery needs to be output on the page... In your template you would need a conditional code to show the gallery. I have done this recently on a template, and i can dig up the code if need be...

ck editor also has a way to lock parts of the editor, so for example if you look at the source code, the tag would look like this:

Code:
<p>
{ % gallery % } </p>
and if you change that to:

Code:
<p contenteditable="false">
{ % gallery % } </p>
it will make that block read only, but the user can still inadvertently delete it;

another option would be to use i18n Special Pages, which would give you more control over the output;
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)