[opencms-dev] Need help with Internal Links

Philip subp at wachtel.us
Mon Aug 16 16:33:06 CEST 2004


Hitesh!

Thanks!  You set me in the right direction.  It turns out that a sub-sub
folder had export=true set and I was under the impression that you could
have mixed settings throughout the folders, but, I guess you can't.  You
pointed me to the properties file and the wording in there was what tipped
me off:

"With the property staticexport.default.export you can decide whitch value
is used if a resource and all parentfolders don't have the the property
export set. "

So, I just removed all export settings up the line and only set the ones I
cared about to dynamic.  That worked.  I kept the properties file set to
true because I think, in the end, that I will have more static than dynamic
files.

Thanks gain,

Philip

-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Hitesh
Sent: Sunday, August 15, 2004 6:52 AM
To: The OpenCms mailing list
Subject: Re: RE: [opencms-dev] Need help with Internal Links

Hi Philip,

You need to change opencms.properties file  export property from true to
dynamic.
and while exporting add the attribute export = dynamic. you will get
opencms/opencms even after opening new session instead of opencms/export.

hope this helps.
hitesh patel
software consultant.
Tata Infotech.
Mob: 919892678844.

----- Original Message -----
From: "Philip" <subp at wachtel.us>
To: "'The OpenCms mailing list'" <opencms-dev at opencms.org>
Sent: Saturday, August 14, 2004 2:45 AM
Subject: RE: RE: [opencms-dev] Need help with Internal Links


> Hi again,
>
> Well, I tried your suggestion, but unfortunately, I'm getting the same
> result.
>
> Here's what get me.  If I'm logged into the admin screens, the links
> are correct (/opencms/opencms), but if I log in through the site, the
> links
are
> always (/opencms/export).  This is true for both my original .html
> files
and
> for the .jsp experiment below.
>
> Still stuck.  I know that there must be something obvious I'm missing,
but,
> man, I can't seem to find it.  I'm still searching, so, if you or
> anyone
has
> any more ideas, they would be really welcome.
>
> Thanks.
>
> Regards,
> 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 12:58 PM
> To: opencms-dev at opencms.org
> Subject: Re: RE: [opencms-dev] Need help with Internal Links
>
> dont forget to add the tag library at the top of the jsp page
>
> <%@ taglib prefix="cms"
> uri="http://www.opencms.org/taglib/cms" %>
>
> create a link using this example.
>
> <a
> href="<cms:link>/alkacon-documentation/index.html</cms:link>">like
> this</a>
>
>
> 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
>
>
>
>
> -----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 12:45 PM
> To: opencms-dev at opencms.org
> Subject: Re: RE: [opencms-dev] Need help with Internal Links
>
> Why dont u try making it index.jsp and use the <cms:link> tag? the
> tags
cant
> be used in html pages.
>
>
> 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
>
>
> -----Original Message-----
> From: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Philip
> Sent: Friday, August 13, 2004 12:04 PM
> To: 'The OpenCms mailing list'
> Subject: RE: [opencms-dev] Need help with Internal Links
>
> Hi again,
>
> Yup.  In regular pages (.html), the <cms:link> tag doesn’t 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
>
>
> _______________________________________________
> 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
>
>
> _______________________________________________
> 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
>



_______________________________________________
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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 11814 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040816/83a8adc1/attachment.bin>


More information about the opencms-dev mailing list