Re: [Zope-dev] absolute_url() and DTML Methods
Chimezie Thomas-Ogbuji <cogbuji@fourthought.com> wrote:
you should be able to append <dtml-var id> to the absolute_url() method call. Althought I'm not sure if it that will append the id of the containing object or the id of the DTMLmethod itself (if it's the latter then that should work for you). So this is what you want:
absolute_url() + "/" + <dtml-var id>
Actually, DTML methods don't expose their own 'id' (under that name), but that of their acquisition context. You need to use 'document_id' for what you want:: absolute_url() + "/" + <dtml-var document_id>
Chimezie
Christian Scholz wrote:
Hi!
On Mon, May 01, 2000 at 10:27:56AM -0700, David Brown wrote:
Why is it that when I call absolute_url() on a DTML Method, I get the URL of the enclosing container, not the DTML Method within that container?
I think (but I am a newbie) that's the difference between dtml methods and documents. Methods simply act as methods to the containing folder and document are "real" objects. Thus moving from a method to a document should change this behaviour.
Is there an equivalent method that will give me the real location of the DTML Method?
Well, this I actually don't know..
Tres. -- ========================================================= Tres Seaver tseaver@digicool.com tseaver@palladion.com
----- Original Message ----- From: "Tres Seaver" <tseaver@palladion.com> To: <zope-dev@zope.org> Cc: "Chimezie Thomas-Ogbuji" <cogbuji@fourthought.com>; "Christian Scholz" <cs@comlounge.net> Sent: Tuesday, May 02, 2000 10:18 AM Subject: Re: [Zope-dev] absolute_url() and DTML Methods
Chimezie Thomas-Ogbuji <cogbuji@fourthought.com> wrote:
absolute_url() + "/" + <dtml-var id>
Actually, DTML methods don't expose their own 'id' (under that name), but that of their acquisition context. You need to use 'document_id' for what you want::
absolute_url() + "/" + <dtml-var document_id>
And, for the sake of syntactic correctness: <dtml-var "absolute_url() + '/' + document_id"> Kevin
Im not sure if this is the right list, please point me in the direction of the correct list if it isnt. Im looking for a wysiwyg html editor that I can integrate with Zope. The closest I have gotten is ftp'ing up files from Dreamweaver. I need to allow non-technical users to build pages and Zope seems perfect for this. TIA. Andy.
I think Dreamweaver 3.0 does this pretty well, one thing we found very helpful was putting the following, and nothing else, in the index_html method: <dtml-var index.html> This lets you have .html endings on everything. Not only are search engines more likely to index pages, it also lets Dreamweaver on the PC edit them without complaining. cheers, Chris Andy McKay wrote:
Im not sure if this is the right list, please point me in the direction of the correct list if it isnt.
Im looking for a wysiwyg html editor that I can integrate with Zope. The closest I have gotten is ftp'ing up files from Dreamweaver. I need to allow non-technical users to build pages and Zope seems perfect for this.
TIA.
Andy.
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
participants (4)
-
Andy McKay -
Chris Withers -
Kevin Dangoor -
Tres Seaver