Text To Module


The plugin removes specific parts of an article (delimitated by {text2mod}...{/text2mod}) and puts them in a module of type "mod_text2mod". This happens only if an instance of that module is available and published in the current page.
The module shows whatever text is removed from the article by the plugin.
*** Why I did it ***
Because a friend asked me to :-)
Without Text To Module, if you want to show a different side text for each article, you should create a lot of Custom HTML modules and manually assign them.
This makes it easier, especially for a site owner which is not a Joomla expert, to get the same result.
Thanks to Christian from http://www.stillnoah.net, who had the original idea.
*** Latest changes ***
2.2
Now you can set the module title with {text2mod|title}...{/text2mod}
2.1
Now you can add a Class Suffix to the module
2.0
Now compatible with Joomla 2.5
Thank you for your review! Your suggestion is reasonable and we will work to produce a "multiple modules" version as soon as possible.
Sometimes I need some advanced layouts. This module helps me to create it. You can render any article element (title, alias, introtext, fulltext, etc ) inside the module.
If you write "JHTML::_('content.prepare', '{text2mod}'.$this->item->title.'{/text2mod}');" anywhere in your template, the module render the article title. And so on.
Extremely useful.
Thanks
Cheers Josh Lewis
@Joshlewis:
thank you for your kind words. Due credit must be given to a friend of mine who is also occasionally a customer, who had the original idea and asked us to create this solution. P.S. i asked him permission to include his name in extension description.
About Joomla 1.7 compatibility, i am going to get some additional help in a few days and hopefully it will be released with only a reasonable amount of delay :-)


