[GeneralDiscussion] Re: zope/plone article

[email protected] (Simon Michael) Sun, 01 Mar 2009 10:25:33 -0800
Newsgroups gmane.comp.web.zope.zwiki
Message-ID <9CB58277-980A-43DA-8070-B75BB6AB1244__10689.2831776806$1235932034$gmane$org@joyful.com>
Hi Niall.. thanks for the feedback, it is useful. I'll take this to  
zwiki.org if you don't mind.

> I'd personally absolutely love if the page URL showed the ZWiki page  
> hierarchy. Much more SEO friendly in particular.

Ah, that's how most sites do it but I really dislike it (overall). It  
becomes much less attractive to rearrange your hierarchy, because your  
links break. And it's much harder to remember and guess urls for  
pages. Why are deep urls more SEO friendly ?

> No way ZWiki could tag which bits are comments and automatically  
> separate comments from content when asked?

It knows internally - try SomePage/documentPart and SomePage/ 
discussionPart. What's the problem you're having ? If you'd like to  
have a skin or skin option that displays the comments part  
differently, eg makes them collapsible, I agree. They do have their  
own css style class/id I believe. Note you can also disable commenting  
(deny Zwiki: add comments permission). Or with some skin tweaks you  
can enable commenting only on *Talk pages, and provide a standard link  
to those (mediawiki-style).

>>> in particular in my case my restructured
>>> text won't let me insert raw html for some odd reason.
>>
>> http://zwiki.org/1342 discusses this. Summary: get the latest Zwiki 2
>> from darcs and set the rst_raw_enabled folder property to true to get
>> it working.
>
> You solved my problem there - thank you. I had thought I was going  
> mad.
>
> I'll tell you why I wanted the dtml ... I am trying to create a master
> include page which defines a long list of external links to sites  
> all over
> the internet. I then want to include that master include page into  
> each and
> every Zwiki page such that they can then refer to the links without  
> having
> to define them in each and every page. My intent is that updating
> masterinclude therefore updates all Zwiki links at once.
>
> This is effectively http://zwiki.org/IncludeOrTransclude. I had  
> originally
> hoped that restructured text's include:: directive would work but
> unfortunately it has been disabled. I then got the dtml working via  
> <dtml-
> var "include('Masterinclude')">, but unfortunately this appears to  
> run the
> REST processor per included file and therefore the links don't  
> transfer.
>
> Is there any way for me to accomplish what I want?

For sure. You can call any of Zwiki's public methods, so eg dtml-var  
"pageWithName('Masterinclude').read()" would get just the text without  
any formatting or wiki-linking. But maybe http://zwiki.org/RemoteWikiLinks 
  will do what you want ?


--
forwarded from http://zwiki.org/GeneralDiscussion#[email protected]