2015-10-16, 01:50:34
(2015-09-09, 00:36:43)thangnaodo Wrote:(2015-09-08, 22:55:38)thangnaodo Wrote: @Carlos:
Thanks for your wonderful plugin, it provides us a blog/news publishing ability from GetSimple CMS.
One question is: I would like to create new custom page (can be an external PHP file or New page feature in AdminCP), for example:
- page1: will display all news/posts having tag "page1"
- pagex: will display all news/posts having tag "pagex"
How to invoke the source code to do so?
Regards,
Tim
Update: I did some tricky lines as below, works like a charm now
Step 1: Install this: http://get-simple.info/extend/plugin/new...ddons/835/ from the same author.
Step 2: Add following code to external page and add as page template via AdminCP
Code:<!-- latest posts with tag "yourtaghere" -->
<?php nm_custom_display_recent('
<div class="my_recent_{{ post_number }}">
<h4><a href="{{ post_link }}">{{ post_title }}</a></h4>
<div class="nm_post_image">
<a href="{{ post_link }}">{{ post_image }}</a>
</div>
<div class="nm_post_content">
{{ post_excerpt }}
</div>
</div>','yourtaghere');
?>
<!-- End posts having tags yourtaghere -->
Hmmm....this looks like a better to do this than what i did. i'll have to give it a go. thanks!