Jahia Dev Forum > Paste as reference...

0 (0 Good)
0 (0 Bad)

Paste as reference not working as expected after moving page

by  surajz »  2011/06/07 20:42

I have 2 pages using the same template. I have defined a containerList to hold list of links.
In page1, I create links that point to internal pages. When I copy the content object from page1 and paste it as a reference (or copy content) to page2, I get the correct link names but the links are missing.

When I view the html source, I see following differences. 
The copied content object consisting of links are treated as external links and href attribute value is missing in the copied link.

page1
----
<span class="link"><a href="/cms/op/edit/journeys/irene_1">Meet Irene</a></span>

page2
-----
<span class="externallink"><a target="_blank" href="http://">Meet Irene</a></span>



Thanks,

  • Paste as reference not working as expected after moving page
    2011/07/08 14:51

    surajz <p> I have 2 pages using the same template. I have defined a containerList to hold list of links.<br /> In page1, I create links that point to internal pages. When I copy the content object from page1 and paste it as a reference (or copy content) to page2, I get the correct link names but the links are missing.<br /> <br /> When I view the html source, I see following differences.&nbsp;<br /> The copied content object consisting of links are treated as external links and href attribute value is missing in the copied link.<br /> <br /> page1<br /> ----<br /> &lt;span class=&quot;link&quot;&gt;&lt;a href=&quot;/cms/op/edit/journeys/irene_1&quot;&gt;Meet Irene&lt;/a&gt;&lt;/span&gt;<br /> <br /> page2<br /> -----<br /> &lt;span class=&quot;externallink&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://&quot;&gt;Meet Irene&lt;/a&gt;&lt;/span&gt;<br /> <br /> <br /> <br /> Thanks,</p>

  • Number of messages  30
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Paste as reference not working as expected after moving page

    by  surajz »  2011/06/07 20:42

    To make it work, I had to use 2 step workflow.
    The reference copy does not work when you use no workflow.
  • Re: Paste as reference not working as expected after moving page
    2011/06/07 20:42

    surajz To make it work, I had to use 2 step workflow.<br/>The reference copy does not work when you use no workflow.

  • Number of messages  30
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Paste as reference not working as expected after moving page

    by  surajz »  2011/06/07 20:42

    "Paste as Reference" does not work when you copy 'content object' containing links from parent page to child page. Simple content object that contains only string or richtext works, but the content object consisting of links/page does not work.

    For example, If you have page0 -> page1 -> page2
    You cannot copy page1 content object to page2. You need to move the page2 at the same level as page1.

  • Re: Paste as reference not working as expected after moving page
    2011/07/08 14:52

    surajz <p> &quot;Paste as Reference&quot; does not work when you copy &#39;content object&#39; containing links from parent page to child page. Simple content object that contains only string or richtext works, but the content object consisting of links/page does not work.<br /> <br /> For example, If you have page0 -&gt; page1 -&gt; page2<br /> You cannot copy page1 content object to page2. You need to move the page2 at the same level as page1.</p>

  • Number of messages  30
    Registration date Jun 7, 2011
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page