You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by "Diwaker Gupta (JIRA)" <ji...@apache.org> on 2005/06/06 10:04:41 UTC

[jira] Created: (FOR-521) static HTML in views

static HTML in views
--------------------

         Key: FOR-521
         URL: http://issues.apache.org/jira/browse/FOR-521
     Project: Forrest
        Type: Wish
  Components: Skins (general issues)  
    Versions: 0.8    
    Reporter: Diwaker Gupta
    Priority: Minor


A final touch for views would be the ability to add arbitrary static HTML to skins. For instance, I want to put a header in all my pages (not a project logo, just some text like "My Home Page" or something on top) Currently there is no easy way to do it, except of course to write a contract for the header and then include that. Maybe there is some simpler mechanism and I just don't know about it?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (FOR-521) static HTML in views

Posted by "Thorsten Scherler (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/FOR-521?page=all ]

Thorsten Scherler updated FOR-521:
----------------------------------

      Component: Views
                     (was: Skins (general issues))
    Fix Version: 0.8-dev

> static HTML in views
> --------------------
>
>          Key: FOR-521
>          URL: http://issues.apache.org/jira/browse/FOR-521
>      Project: Forrest
>         Type: Wish
>   Components: Views
>     Versions: 0.8-dev
>     Reporter: Diwaker Gupta
>     Assignee: Thorsten Scherler
>     Priority: Minor
>      Fix For: 0.8-dev

>
> A final touch for views would be the ability to add arbitrary static HTML to skins. For instance, I want to put a header in all my pages (not a project logo, just some text like "My Home Page" or something on top) Currently there is no easy way to do it, except of course to write a contract for the header and then include that. Maybe there is some simpler mechanism and I just don't know about it?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (FOR-521) static HTML in views

Posted by "Thorsten Scherler (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/FOR-521?page=all ]

Thorsten Scherler reassigned FOR-521:
-------------------------------------

    Assign To: Thorsten Scherler

> static HTML in views
> --------------------
>
>          Key: FOR-521
>          URL: http://issues.apache.org/jira/browse/FOR-521
>      Project: Forrest
>         Type: Wish
>   Components: Skins (general issues)
>     Versions: 0.8
>     Reporter: Diwaker Gupta
>     Assignee: Thorsten Scherler
>     Priority: Minor

>
> A final touch for views would be the ability to add arbitrary static HTML to skins. For instance, I want to put a header in all my pages (not a project logo, just some text like "My Home Page" or something on top) Currently there is no easy way to do it, except of course to write a contract for the header and then include that. Maybe there is some simpler mechanism and I just don't know about it?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (FOR-521) static HTML in views

Posted by "Thorsten Scherler (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/FOR-521?page=comments#action_12312799 ] 

Thorsten Scherler commented on FOR-521:
---------------------------------------

Actually pure html should be in a contract IMO. 

I thought about allowing <forrest:hook>text</forrest:hook> but that does not feels right in the view. 

I think something like:
<forrest:contract name="site-branding">
  <forrest:properties contract="site-branding">
     <forrest:property name="site-name">new seed</forrest:property>
     <forrest:property name="site-tagline">powered by forrest:views</forrest:property>
  </forrest:properties>
</forrest:contract>

Is handy for the reuse of contracts in different views with different properties. The template would look like:
<xsl:template name="site-branding-body">
  <xsl:param name="site-name"/>
  <xsl:param name="site-tagline"/>
  <div id="site-name"><xsl:value-of select="$site-name"/> </div>
  <div id="site-tagline"><xsl:value-of select="$site-tagline"/></div>
</xsl:template>

Where this <forrest:properties contract="site-branding"> will be properly in the long run not part of the views.fv but another config file (maybe generated out of somekind of metadata)

WDYT?

*Rember discussions on dev list*

> static HTML in views
> --------------------
>
>          Key: FOR-521
>          URL: http://issues.apache.org/jira/browse/FOR-521
>      Project: Forrest
>         Type: Wish
>   Components: Skins (general issues)
>     Versions: 0.8
>     Reporter: Diwaker Gupta
>     Assignee: Thorsten Scherler
>     Priority: Minor

>
> A final touch for views would be the ability to add arbitrary static HTML to skins. For instance, I want to put a header in all my pages (not a project logo, just some text like "My Home Page" or something on top) Currently there is no easy way to do it, except of course to write a contract for the header and then include that. Maybe there is some simpler mechanism and I just don't know about it?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (FOR-521) static HTML in views

Posted by "Thorsten Scherler (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/FOR-521?page=all ]
     
Thorsten Scherler resolved FOR-521:
-----------------------------------

    Resolution: Fixed

> static HTML in views
> --------------------
>
>          Key: FOR-521
>          URL: http://issues.apache.org/jira/browse/FOR-521
>      Project: Forrest
>         Type: Wish
>   Components: Views
>     Versions: 0.8-dev
>     Reporter: Diwaker Gupta
>     Assignee: Thorsten Scherler
>     Priority: Minor
>      Fix For: 0.8-dev

>
> A final touch for views would be the ability to add arbitrary static HTML to skins. For instance, I want to put a header in all my pages (not a project logo, just some text like "My Home Page" or something on top) Currently there is no easy way to do it, except of course to write a contract for the header and then include that. Maybe there is some simpler mechanism and I just don't know about it?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira