Hi there I have followed the turbogears 20 minute wiki and I would now
like to link many pages from the frontpage or page.kid...the first page
i wanted to link was a page called testpage

    @expose(template="se.templates.testpage.kid")
    @identity.require(identity.not_anonymous())
    def test(self, pagename="testpage"):
        try:
            page = Page.byPagename(pagename)
        except SQLObjectNotFound:
            redirect("/notfound", pagename=pagename)

        content = publish_parts(page.data,
writer_name="html")["html_body"]
        content = wikiwords.sub(r'<a href="\1">\1</a>', content)
        return dict(page=page, data=content)

that is what I have in my controllers.py and I have linked it from
page.kid by using
<a href="/testpage">Test Page</a>

I have created a page through catwalk called testpage...however When I
try to put some content within the testpage.kid it is not displayed
when I click the link.

I need some help fast!..any help out there??


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to