Page 1 of 1

New plugin: "Tag Related Pages"

Posted: Wed Jun 08, 2016 9:37 pm
by blast2007
Hi all,
I really need to link related pages with one or more tag(s), so I use to install on my sites an useful module Simple Tagging. Now this module doesn't work anymore with CMSMS 2.x
So, I wrote a simple plugin for this purpose. I know, it's ugly it's not perfect and I'm not a programmer, but...it works.
You can download it on Github. I'm still waiting official approval to join this small project on CMSMS forge.

Hope it could be useful for someone.
Best regards
blast

Re: New plugin: "Tag Related Pages"

Posted: Thu Jun 09, 2016 1:26 pm
by PinkElephant
Hi blast

Thanks for sharing -- it looks really useful. A quick question, where does the smarty_function_tag_related_pages function get its cms_db_prefix()?

You may be interested in maidbloke, a responsive blog, which uses CGBlog for similar functionality.

Cheers,
Martin

Re: New plugin: "Tag Related Pages"

Posted: Thu Jun 09, 2016 2:34 pm
by blast2007
PinkElephant wrote:...A quick question, where does the smarty_function_tag_related_pages function get its cms_db_prefix()?
:o :o :o
Sorry, my bad, plugin just updated!

Thanks a lot
Regards
blast

Re: New plugin: "Tag Related Pages"

Posted: Fri Jun 10, 2016 2:03 pm
by PinkElephant
Hi blast

I didn't realise it was an error -- I'm surprised it worked if it was!

I'll keep watching github and/or the forge for the update.

Thanks,
Martin

Re: New plugin: "Tag Related Pages"

Posted: Fri Jun 10, 2016 2:24 pm
by Jo Morg
For the record: cms_db_prefix() is a perfectly valid core function available to modules and plugins.

Re: New plugin: "Tag Related Pages"

Posted: Fri Jun 10, 2016 2:58 pm
by PinkElephant
Jo Morg wrote:valid core function
Ah, so it is, thanks - à la API docs 2.0.

I guess I was expecting the CMS_DB_PREFIX constant.