Keyword

Dropdown Extra Field and "loadposition" plugin

  • Nathan
  • Nathan's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 1 month ago #158751 by Nathan
I'm working on a site where we've set up a Text extra field where we are able to use the "loadposition" plugin to have a Joomla module load in a particular postion on the Item template just be entering for exmaple:
{loadposition rhc-blog-position}

... and the module will correctly load on the template where we've placed the extra field value with:
<?php if(isset($this->item->extraFields->RHCModuleOne->value)): ?>
	<?php echo $this->item->extraFields->RHCModuleOne->value; ?>
<?php endif; ?>

So it occurred to me, to make life easier for our content publishers, I could set up a pull-down menu with multiple instances of "loadposition" for different modules so that they could just select it from the pull-down menu without having to go the Module manager to find out the module position.

Unfortunately though, when I try this with the Pulldown extra field type, it simply doesn't work. The module doesn't display and the loadposition tag just displays as text.

Does anybody have any ideas as to why this doesn't work and any suggestions as to how I might get it working?

Thanks

Nathan

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 1 month ago #158769 by Krikor Boghossian
Replied by Krikor Boghossian on topic Dropdown Extra Field and "loadposition" plugin
Hello,

You will need to manually trigger content modules in order for this to work.
docs.joomla.org/Triggering_content_plugins_in_your_extension

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Nathan
  • Nathan's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 1 month ago #158792 by Nathan
Hi Krikor,

Thanks for the response, that does indeed work.

But I've also discovered in the meantime the "Modules Anywhere" plugin, which takes care of the triggering for you and provides a few more options than "loadposition".

Cheers

Nathan

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 1 month ago #158798 by Krikor Boghossian
Replied by Krikor Boghossian on topic Dropdown Extra Field and "loadposition" plugin
Nice to hear that you got this sorted out Nathan :)

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum