[gatewiki-commits] SF.net SVN: gatewiki:[1460] trunk/cow/grails-app/taglib/PageLinkTagLib. groovy

View: New views
1 Messages — Rating Filter:   Alert me  

[gatewiki-commits] SF.net SVN: gatewiki:[1460] trunk/cow/grails-app/taglib/PageLinkTagLib. groovy

by hcunningham-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Revision: 1460
          http://gatewiki.svn.sourceforge.net/gatewiki/?rev=1460&view=rev
Author:   hcunningham
Date:     2009-07-06 15:53:06 +0000 (Mon, 06 Jul 2009)

Log Message:
-----------
note re. implementing area-specific layouts

Modified Paths:
--------------
    trunk/cow/grails-app/taglib/PageLinkTagLib.groovy

Modified: trunk/cow/grails-app/taglib/PageLinkTagLib.groovy
===================================================================
--- trunk/cow/grails-app/taglib/PageLinkTagLib.groovy 2009-07-06 15:44:26 UTC (rev 1459)
+++ trunk/cow/grails-app/taglib/PageLinkTagLib.groovy 2009-07-06 15:53:06 UTC (rev 1460)
@@ -133,6 +133,14 @@
    * Link to the guest layout if present, else to the CoW main layout.
    */
   def layoutLink = { attrs, body ->
+  /*
+  TODO
+    if we've got attrs.id and this refers to a valid Wiki object
+      (Wiki.get(id)), and if this wiki has wikiAreaName, and if that refers to
+      a .gsp which is present (see setGuestLayoutPath in CowUtils), then
+      output that name
+    else...
+  */
     if(CowUtils.config.gate.cow.guest.layout.present)
       out << '<meta name="layout" content="cowguest" />'
     else


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

------------------------------------------------------------------------------
_______________________________________________
gatewiki-commits mailing list
gatewiki-commits@...
https://lists.sourceforge.net/lists/listinfo/gatewiki-commits