Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom Fields for galleries
#4
Thank you for the quick reply.

alienee2 Wrote: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;


If you have those snippets easily accessible, and it is a different solution that mvlcek's, that would be great time saver.

I have not loaded either of these extensions yet, so off I go to experiment...

Thanks for the awesome tips.


GS Community Edition with php8.x compatibility, new features and much more!  Support Me


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)