[opencms-dev] Need help with Internal Links
Philip
subp at wachtel.us
Fri Aug 13 18:04:21 CEST 2004
Hi again,
Yup. In regular pages (.html), the <cms:link> tag doesnt get processed.
Somehow, the link gets changed automatically. I did try to add <cms:link>,
but the only thing that happens is this:
<a
href="/opencms/opencms/www/photoalbum/category_2004/<cms:link>page2.html</cm
s:link>" target="_self">forward--></a>
And, when I publish it, I get:
Checking /www/photoalbum/category_2004/index.html contains broken link to:
/www/photoalbum/category_2004/page2.html
And then, oddly, I get this export error, which I just noticed:
Publishing resource ...
Publishing /www/photoalbum/category_2004/index.html
Publishing /system/bodies/www/photoalbum/category_2004/index.html
Static export, number of starting links is: 2
Exporting /www/photoalbum/category_2004/index.html
Exception com.opencms.core.CmsException: 31 Access denied to resource.
Detailed error: [com.opencms.file.mySql.CmsResourceBroker]
/default/vfs/www/photoalbum/category_2004/index.html.
at
com.opencms.file.genericSql.CmsResourceBroker.readFileHeader(CmsResourceBrok
er.java:5365)
at
com.opencms.file.genericSql.CmsResourceBroker.readProperty(CmsResourceBroker
.java:6117)
at com.opencms.file.CmsObject.readProperty(CmsObject.java:3302)
at com.opencms.util.Utils.isHttpsResource(Utils.java:368)
at
com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:259)
at com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:341)
at com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:274)
at com.opencms.file.CmsStaticExport.exportLink(CmsStaticExport.java:628)
at com.opencms.file.CmsStaticExport.<init>(CmsStaticExport.java:259)
at
com.opencms.file.genericSql.CmsResourceBroker.exportStaticResources(CmsResou
rceBroker.java:4659)
at com.opencms.file.CmsObject.exportStaticResources(CmsObject.java:1523)
at com.opencms.file.CmsObject.publishProject(CmsObject.java:2453)
at com.opencms.file.CmsObject.publishResource(CmsObject.java:2598)
at
com.opencms.workplace.CmsPublishResourceThread.run(CmsPublishResourceThread.
java:61)
Skipping /system/bodies/www/photoalbum/category_2004/index.html
... static export finished
Checking filesystem links ...
.. filesystem link check finished
... the resource has been published
So, still trying to figure this one out. My theory is that opencms thinks
that the page is at /opencms/export even though I set export:false.
What do you think?
Thanks,
Philip
-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Radha Prasad
Sent: Friday, August 13, 2004 11:44 AM
To: opencms-dev at opencms.org
Subject: Re: [opencms-dev] Need help with Internal Links
did you try using the <cms:link> tag?
Care2 make the world greener!
Good People. Great Causes. Get Connected on Care2 Connect:
http://www.care2.com/go/z/C2Connect
_______________________________________________
This mail is send to you from the opencms-dev mailing list To change your
list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev
----------------------------------------------------------------------------
----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org]
Sent: Friday, August 13, 2004 10:40 AM
To: opencms-dev at opencms.org
Subject: [opencms-dev] Need help with Internal Links
Hi all,
I'm working with OpenCMS 5.0.1. I think, for all intents and purposes, the
system is working properly. The problem is my lack of understanding of how
the system works.
All I'm trying to do is link from one non-exported internal page to another.
Both pages have the attribute of export:false.
So, index.html links to page2.html with the following code:
<a href="page2.html" target=_self>forward--></a>
But, when I hit the index.html page, the link translates to:
<a href="/opencms/export/www/photoalbum/category_2004/page2.html"
target="_self">forward--></a>
So, obviously, they system isn't obeying my export:false order. I've tried
hard coding the link to /opencms/opencms/..., but it still translates to
/opencms/export/...
The only two possible causes that I can think of is caching and permissions.
So, I turned caching off for bodies. I even looked in the flex cache admin
screen and saw with my own eyes that those bodies were no longer being
cached. No difference.
The permissions on this page are currently all: rwvrwv--v- because I want
people to have to log in. The login stuff works, but the links point to
export instead of opencms. I tried the following, default, permissions as
well, but nothing changed: rwvrwvr-v- I just figured that if it thought
that the user didn't have permissions to see the page (which it did, of
course) then it would just default to looking for it at /opencms/export.
But that doesn't seem to be the issue (in any obvious way).
Any help would be very very welcome! All I want to do is have a link in an
html page point to /opencms/opencms/...something.
Thanks for your time.
Regards,
Philip
More information about the opencms-dev
mailing list