[Tiki-devel] A user friendly way to edit content within templates
Bernard Sfez via TikiWiki-devel <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello,
Tiki is very strong fro managing plain Wiki pages.
But sometimes you need to use templates (smarty or wiki tpl) to create a Tiki website that includes advanced design and search tools.
In such case, you want to “protect” the page from editing and being open (the user don’t need to see what is under the hood) while having the easiest possible way for the user to edit the page content.
I started experimented things and a working way I found is to use templates + wikiplugin includes + lang pref + wiki page.
IE:
In a smarty template I have:
<p>
{if $prefs.language eq "fr"}
{wikiplugin _name=include page="HomePage_banner_fr" nopage_text=“Contenu à ajouter..." page_edit_icon="y"}{/wikiplugin}
{elseif $prefs.language eq "he"}
{wikiplugin _name=include page="HomePage_banner_en" nopage_text=“תוכן חסר..." page_edit_icon="y"}{/wikiplugin}
{else}
{wikiplugin _name=include page="HomePage_banner_en" nopage_text="Content to be added..." page_edit_icon="y"}{/wikiplugin}
{/if}
</p>
Then I have 3 wiki pages for the content (I tried to use one page with 3 include sections per language it was confusing for the user and it may be not the same user that edit a language) 🥴 in a “Website content” structure.
Plus 3 wiki page for each language.
All this is working fine however it is quite complicate, more fragile than needed, more expensive (time is money) than expected, they may be some side effects on SEO (pages indexed ?), etc.
Someone see a clever way ?
Bernard
_______________________________________________
TikiWiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel