You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by "Thorsten Scherler (JIRA)" <ji...@apache.org> on 2008/09/12 11:39:45 UTC
[jira] Commented: (FOR-1105) Unexpected behaviour of locationmap
and themes
[ https://issues.apache.org/jira/browse/FOR-1105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12630535#action_12630535 ]
Thorsten Scherler commented on FOR-1105:
----------------------------------------
The above lm entry is not for panels (they have they own):
<match pattern="resolve.panels.**">
<select type="exists">
<location src="{properties:resources}/themes/{properties:dispatcher.theme}/panels/{1}{properties:dispatcher.panel-ext}"
/>
<location src="{properties:resources}/themes/{properties:dispatcher.fallback.theme}/panels/{1}{properties:dispatcher.panel-ext}"
/>
<!-- plugin provided panels -->
<location src="{lm:resolvePluginPanels.{1}}" />
<location src="{lm:dispatcher.themer}/themes/{properties:dispatcher.theme}/panels/{1}{properties:dispatcher.panel-ext}"
/>
<location src="{lm:dispatcher.themer}/themes/{properties:dispatcher.fallback.theme}/panels/{1}{properties:dispatcher.panel-ext}"
/>
</select>
</match>
I guess to make dispatcher more intuitive the first two locations should be refactored as follow:
Replace "{properties:resources}/themes" with "{lm:themer.project.dir}"
can you provide a patch?
> Unexpected behaviour of locationmap and themes
> ----------------------------------------------
>
> Key: FOR-1105
> URL: https://issues.apache.org/jira/browse/FOR-1105
> Project: Forrest
> Issue Type: Bug
> Components: Locationmap
> Reporter: Pablo Barrera
> Priority: Minor
>
> I have modified my locationmap as follows:
> <match pattern="themer.project.dir">
> <location src="{properties:home}/themes" />
> </match>
> I am using the pelt theme:
> <property name="dispatcher.theme" value="pelt"/>
> <property name="dispatcher.theme-ext" value=".fv"/>
> so I copy my themes files to its expected location:
> themes/pelt/panels/pelt-html.content.panel.xml
> themes/pelt.fv
> The pelt-html.content.panel.xml is not used but pelt.fv is.
> When looking at
> http://localhost:8888/resolve.structurer.index
> I can see my local copy but the locationmap is looking for pelt/panels/pelt-html.content.panel.xml in the default dir, not in my local dir.
> According to the locationmap logs:
> $ cat locationmap.log | grep pelt-html.content.panel.xml | grep MY_PROPERTIES_HOME/themes
> Nothing...
> $ cat locationmap.log | grep pelt-html.content.panel.xml | grep MY_PROPERTIES_HOME
> DEBUG [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels/pelt-html.content.panel.xml
> DEBUG [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/common/panels/pelt-html.content.panel.xml
> DEBUG [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels/pelt-html.content.panel.xml
> DEBUG [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/wiki2tei/src/documentation/resources//themes/common/panels/pelt-html.content.panel.xml
> If I copy the themes/pelt/panels/pelt-html.content.panel.xml file to PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels the system worked correctly.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.