Elxis CMS Forum

Support => Elxis 4.x/5.x DEV => Topic started by: michalis1984 on October 02, 2012, 19:20:51

Title: Load module position in articles
Post by: michalis1984 on October 02, 2012, 19:20:51
Is it possible to load a module position in articles? I was doing this at the old version by typing: {mosloadposition module-name}

Title: Re: Load module position in articles
Post by: datahell on October 02, 2012, 22:33:17
We haven't built a plug-in supporting that but we can built it, it is easy. Thanks for reminding this to me.

Important tip 1:
Content categories have built-in functionality to load modules between articles! In the category parameters you can provide a module's position. The modules of this position will be shown on the category page on the place where the selected category layout renders them. The global option is to display the modules assigned to position named category, but you can change this per category.
Test it:
With the default Elxis installation assign some modules in position category, now go and see your category pages!


Important tip 2:
On custom user modules there is an option to run plug-ins inside the module! So, you can use a plug-in as a module...
Sample usage:
I have, let's say, the map's plug-in but I want to show it on the left column as a module. Create a new user module include inside the editor's text area the plug-in code (eg. {map}xxx,yyy{/map}) and your plug-in will be displayed as a module in the left column!
Title: Re: Load module position in articles
Post by: michalis1984 on October 03, 2012, 12:57:34
Yes i notice module position in categories. It's a new useful feature and one of those changes that make the difference.

If you build the mosloadposition will be very useful. Also, you may think (for a future elxis release/update) about adding a few ready module positions in articles, like that we have for category. Maybe one at the top, below the article main image, and one at the end of the article. But this is something to think for the future. For now the mosloadposition will do the job fine.

Personaly i find it useful for "in article ads", and social buttons. Because it is easier to change them in the furure if we have a module place in articles and let me give you an example.

Lets say i have a website with 1000 articles. My site is not a newspaper where the articles in 1 week will be old and for trash. My site is like encyclopedia, where articles will be useful for a long time. So, now, after some months i install at elxis a "content plugin" which adds a google+ button .. or any other share button or a "read more articles list" or.. anything else, and i want this to appear at the bottom af all articles, or of a specific category. So i will have to edit all old articles to add this plugin adding the code {newplugin}something{/newplugin}. It will be time consuming to edit all articles and add this line. But if we had a module position at the end of an article, we could load anything we like, just like you said at tip 2.

You can see a live example at my website which is build with the old elxis. Here http://www.daskalemata.gr/os/windows-help/pin-programs-at-taskbar.html - the adv at the top of the article is a module, loaded in a module position which i put at the articles using modloadposition. Also, at the bottom of the article .. the "share button", the ads, and the "more articles of that category" module, are loaded in the botton module placement which i added manualy at each article.

If i want to chance anything in the future, its easier to just change the module or assing a new module at this module position than editing all articles.

Because elxis is new and maybe i miss something, is it possible for content plugin build in that way so it appear les say at the bottom of all articles? If it is possible and i didnt notice something, please tell me. Lets take the facebook comments plugin, you have to input the special code in all articles in order for the plugin to appear in all articles. If you already have a lot of articles this will be "impossible". Now, its the begining and we dont have so many articles at elxis4 websites so its easy, but if somene in 5 months tries to install and use a plugin like facebook comments will be find it hard to include it if we wants at old articles.

So..  mosloadposition is useful  ;D
Title: Re: Load module position in articles
Post by: juanon on January 07, 2016, 15:20:39
Hi,

Is there a way to get modules inside articles right now? Is there a plugn for that yet?

I really need this feature for my sites.

Thank you
Title: Re: Load module position in articles
Post by: datahell on January 07, 2016, 17:35:59
You can display modules inside categories but not inside articles. For articles there are the plugins that are special extensions build exactly for that purpose. So inside articles use plugins, not modules. You can display a plugin inside a module but not the opposite. At least there is no such third party extension till now.
Title: Re: Load module position in articles
Post by: juanon on January 07, 2016, 19:26:22
Thanks, I know these options, but this is not what I need.

Thanks anyway.
Title: Re: Load module position in articles
Post by: juanon on January 07, 2016, 20:15:00
By the way, I´m willing to pay if some developer can create such a plugin

Regards
Title: Re: Load module position in articles
Post by: datahell on January 07, 2016, 21:16:09
It is an easy plugin, I just have no free time for such jobs. If you don't have any proposals by other developers contact me in private, I will help you.
Title: Re: Load module position in articles
Post by: datahell on January 08, 2016, 17:59:37
I develop that plugin for you, free of charge. It will be ready in a few hours.
Title: iModule plugin
Post by: datahell on January 08, 2016, 20:35:42
As promised I built the plugin for you and you can download it for free from EDC.

iModule plugin -  Include modules inside articles (https://www.elxis.net/edc/miscellaneous/117.html)

Happy download!
Title: Re: Load module position in articles
Post by: juanon on January 08, 2016, 21:06:38
You are the best, man.

I´m checking it right now.

Thanks a million