links within a document

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

links within a document

by greg-180 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,
 
I'm creating a document type that is rather long and contains several sections. I have a requirement to add links to the top of the document page that navigate to sections lower in the page to avoid excess scrolling. After adding anchor tags with href attributes, I noticed that clicking on these links did not take you to sections within the document but instead brought you out of the document and to the user's landing page.
 
I've tried regular html and also jsf tags like this:
 
<h:outputLink value="#section_name">Lower Section</h:outputLink>
 
.....
 
<a name="section_name">Lower Section Title</a>
 
I'm sure there is a way to do this. How is it done?
 
Thanks,
Greg

_______________________________________________
ECM mailing list
ECM@...
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Parent Message unknown FW: links within a document

by greg-180 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi All,

 

I answered my own question. The class Head.java in nuxeo-theme-html will output the <base href=”…” /> html tag with the base url value of http://localhost:8080/nuxeo/. This prevents the internal linking I was attempting to do below. The solution is to link via javascript.

 

I guess this is what I get for posting this message at 12am. Let me know if these types of questions are inappropriate for this list.

 

Cheers,

Greg

 

From: ecm-bounces@... [mailto:ecm-bounces@...] On Behalf Of Greg Jenkins (greg@...)
Sent: Friday, June 26, 2009 12:10 AM
To: ecm@...
Subject: [Ecm] links within a document

 

Hi All,

 

I'm creating a document type that is rather long and contains several sections. I have a requirement to add links to the top of the document page that navigate to sections lower in the page to avoid excess scrolling. After adding anchor tags with href attributes, I noticed that clicking on these links did not take you to sections within the document but instead brought you out of the document and to the user's landing page.

 

I've tried regular html and also jsf tags like this:

 

<h:outputLink value="#section_name">Lower Section</h:outputLink>

 

.....

 

<a name="section_name">Lower Section Title</a>

 

I'm sure there is a way to do this. How is it done?

 

Thanks,

Greg


_______________________________________________
ECM mailing list
ECM@...
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

_______________________________________________
ECM mailing list
ECM@...
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Re: FW: links within a document

by Sean Radford-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Don't believe that will completely solve your problems.

Think you'll still run into problems with the Theme Editor and also
features that depends on the GWT (there are some references to the
context that are built on the server and sent back in the payload and
used to retrieve the SerializationPolicy)

Sean

greg@... wrote:

>
> Hi All,
>
> I answered my own question. The class Head.java in nuxeo-theme-html
> will output the <base href=”…” /> html tag with the base url value of
> http://localhost:8080/nuxeo/. This prevents the internal linking I was
> attempting to do below. The solution is to link via javascript.
>
> I guess this is what I get for posting this message at 12am. Let me
> know if these types of questions are inappropriate for this list.
>
> Cheers,
>
> Greg
>
> *From:* ecm-bounces@...
> [mailto:ecm-bounces@...] *On Behalf Of *Greg Jenkins
> (greg@...)
> *Sent:* Friday, June 26, 2009 12:10 AM
> *To:* ecm@...
> *Subject:* [Ecm] links within a document
>
> Hi All,
>
> I'm creating a document type that is rather long and contains several
> sections. I have a requirement to add links to the top of the document
> page that navigate to sections lower in the page to avoid excess
> scrolling. After adding anchor tags with href attributes, I noticed
> that clicking on these links did not take you to sections within the
> document but instead brought you out of the document and to the user's
> landing page.
>
> I've tried regular html and also jsf tags like this:
>
> <h:outputLink value="#section_name">Lower Section</h:outputLink>
>
> .....
>
> <a name="section_name">Lower Section Title</a>
>
> I'm sure there is a way to do this. How is it done?
>
> Thanks,
>
> Greg
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ECM mailing list
> ECM@...
> http://lists.nuxeo.com/mailman/listinfo/ecm
> To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm


--
Dr. Sean Radford, MBBS, MSc
http://www.tacola.com/
t: +44 (0) 8700 671 490
m: +44 (0) 7802 24 24 86

_______________________________________________
ECM mailing list
ECM@...
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Re: FW: links within a document

by Sean Radford-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Doh - thought this thread was the one to do with changing the Nuxeo web
context!

Sean Radford wrote:

> Don't believe that will completely solve your problems.
>
> Think you'll still run into problems with the Theme Editor and also
> features that depends on the GWT (there are some references to the
> context that are built on the server and sent back in the payload and
> used to retrieve the SerializationPolicy)
>
> Sean
>
> greg@... wrote:
>>
>> Hi All,
>>
>> I answered my own question. The class Head.java in nuxeo-theme-html
>> will output the <base href=”…” /> html tag with the base url value of
>> http://localhost:8080/nuxeo/. This prevents the internal linking I
>> was attempting to do below. The solution is to link via javascript.
>>
>> I guess this is what I get for posting this message at 12am. Let me
>> know if these types of questions are inappropriate for this list.
>>
>> Cheers,
>>
>> Greg
>>
>> *From:* ecm-bounces@...
>> [mailto:ecm-bounces@...] *On Behalf Of *Greg Jenkins
>> (greg@...)
>> *Sent:* Friday, June 26, 2009 12:10 AM
>> *To:* ecm@...
>> *Subject:* [Ecm] links within a document
>>
>> Hi All,
>>
>> I'm creating a document type that is rather long and contains several
>> sections. I have a requirement to add links to the top of the
>> document page that navigate to sections lower in the page to avoid
>> excess scrolling. After adding anchor tags with href attributes, I
>> noticed that clicking on these links did not take you to sections
>> within the document but instead brought you out of the document and
>> to the user's landing page.
>>
>> I've tried regular html and also jsf tags like this:
>>
>> <h:outputLink value="#section_name">Lower Section</h:outputLink>
>>
>> .....
>>
>> <a name="section_name">Lower Section Title</a>
>>
>> I'm sure there is a way to do this. How is it done?
>>
>> Thanks,
>>
>> Greg
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> ECM mailing list
>> ECM@...
>> http://lists.nuxeo.com/mailman/listinfo/ecm
>> To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm
>
>


--
Dr. Sean Radford, MBBS, MSc
http://www.tacola.com/
t: +44 (0) 8700 671 490
m: +44 (0) 7802 24 24 86

_______________________________________________
ECM mailing list
ECM@...
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm