Hello,
I still would like to know how to use CUSTOM FIELDS and why the WYSIWYG_Custom doesn't save.
(I am using the newest RC of getSimple CMS, BTW.)
Meanwhile I managed to apply a simple Template Engine for the Template Stuff of the Blog.
The Template File looks like this:
I couldn't find any suggested Template Engine, so I used the one I think is ballanced in usability and weight (this one is a one file Template Engine with only 35kB of Code). It's distributed under the GNU LGPL.
Is there any interest in a separation of code/template?
If yes I can upload files with Patch instructions.
Kind regards,
Serenado
P.S. Thanks again for this nice CMS and Blog-Plugin.
I still would like to know how to use CUSTOM FIELDS and why the WYSIWYG_Custom doesn't save.
(I am using the newest RC of getSimple CMS, BTW.)
Meanwhile I managed to apply a simple Template Engine for the Template Stuff of the Blog.
The Template File looks like this:
Code:
{if condition="isset($post.id)"} <!-- SINGLE BLOG POST -->
{if condition="$config.postadtop == 'Y'"}
<div class="blog_all_posts_ad">
{$config.addata}
</div>
{/if}
{if condition="$config.disquscount == 'Y'"}
<a href="{$post.url}/#disqus_thread" data-disqus-identifier="{$post.id}" style="float:right"></a>
{/if}
<div class="blog_post_container">
<h3 class="blog_post_title">
<a href="{$post.url}" class="blog_post_link">
{$post.title}
</a>
</h3>
{if condition="$config.displaydate == 'Y'"}
<p class="blog_post_date">{$post.date}</p>
{/if}
<p class="blog_post_content">
{if condition="$post.thumb_src"}
<img src="{$post.thumb_src}" alt="{$post.title}" style="width: 200px;height: auto; "/>
{/if}{$post.content}
{if condition="$config.displayreadmore == 'Y'"}{$config.readmore}{/if}
</div>
{if condition="!empty($tags)"}
<p class="blog_tags"><b>{$i18n.TAGS} :</b>
{loop="tags"}
<a href="{$tag_url}{$value}">{$value}</a>
{/loop}
</p>
{/if}
<p class="blog_go_back"><a href="javascript:history.back()"><< {$i18n.GO_BACK}</a></p>
{if condition="$config.addthis == 'Y'"}
{function="addThisTool()"}
{/if}
{if condition="$config.sharethis == 'Y'"}
{function="shareThisTool()"}
{/if}
{if condition="$config.comments == 'Y'"}
{function="disqusTool()"}
{/if}
{if condition="$config.postadbottom == 'Y'"}
<div class="blog_all_posts_ad">
{$config.addata}
</div>
{/if}
{else} <!-- BLOG POSTS LOOP -->
<div class="blog_post_container">
<h3 class="blog_post_title">
<a href="{$post.url}" class="blog_post_link">
{$post.title}
</a>
</h3>
{if condition="$config.displaydate == 'Y'"}
<p class="blog_post_date">{$post.date}</p>
{/if}
<p class="blog_post_content">
{if condition="$post.thumb_src"}
<img src="{$post.thumb_src}" alt="{$post.title}" style="width: 200px;height: auto; "/>
{/if}{$post.content}
{if condition="$config.displayreadmore == 'Y'"}
<a href="{$post.url}">
{if condition="$config.readmore != ''"}
{$config.readmore}
{else}
{$i18n.READ_FULL_ARTICLE}
{/if}
»</a>
{/if}
</div>
{if condition="!empty($tags)"}
<p class="blog_tags"><b>{$i18n.TAGS} :</b>
{loop="tags"}
<a href="{$tag_url}{$value}">{$value}</a>
{/loop}
</p>
{/if}
{/if}
I couldn't find any suggested Template Engine, so I used the one I think is ballanced in usability and weight (this one is a one file Template Engine with only 35kB of Code). It's distributed under the GNU LGPL.
Is there any interest in a separation of code/template?
If yes I can upload files with Patch instructions.
Kind regards,
Serenado
P.S. Thanks again for this nice CMS and Blog-Plugin.