We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 49710
    • 92 Posts
    Hi,

    with pdoResources I list specific Documents. Inside the tpl to display this resources I habe a link like that:

    <a href="[[~[[+id]]]]">......


    The resources are inside another context. When I click on the link to open that document: Nothing happened.
    I see that the URL ist changing inside the adress line above, but ist will not display the document. It stays and displays the output of pdoResources.

    I use context it to divide content, not to route to another subdomain. In this case.

    What can it be?

    allow_forward_across_contexts is set to 1 [ed. note: ichris89 last edited this post 9 years, 2 months ago.]
      • 17301
      • 932 Posts
      Are you specifying what context to grab from also in your call?
        ■ email: [email protected] | ■ website: https://alienbuild.uk

        The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
        • 49710
        • 92 Posts
        No, if I do that the resources will not displayed.
          • 49710
          • 92 Posts
          Still struggling with that problem. Please, I have no idea :-(
            • 17301
            • 932 Posts
            Sorry I'm not sure I completely understand the english in the original post. Can you try to explain a little clearer and also post your call in full ? It may be helpful to also say what the url address should be that you're expecting, and what is being returned.
              ■ email: [email protected] | ■ website: https://alienbuild.uk

              The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
              • 49710
              • 92 Posts
              Hi LK,

              sure. The call ist that:
              [[pdoResources?
                  &parents=`7`
                  &sortby=`{"publishedon":"DESC"}`
                  &limit=`6`
                  &includeContent=`1`
                  &prepareTVs=`1`
                  &processTVs=`article.picture`
                  &includeTVs=`article.portal,article.start,article.kategorie,article.picture,article.hascolor,article.label`
                  &tvFilters=`article.portal==Diverses%,article.start==Ja%`
                  &tpl=`tpl.post-startsite`
                  &tplFirst=`tpl.post-startsiteFirst`
                  
              ]]


              Parent (7) ist a document/folder inside a different context.
              The documents where displayed like it should be (See the tpl). But when click on the link nothing happend.

              If I move the folder (7) to the normal web context, everything ist fine. But my Idea is to divide the content
              with the different contexts, for a better look and feel inside the backend.

              The tpl is:
              <div class="col-md-3">
              
                 [[+tv.article.hascolor:is=`Ja`:then=`
                 		<div class="post-special">
                 `:else=`<div class="post">
                 `]]
              
              		<a href="[[~[[+id]]]]" class="feature-post-link">
              			<div class="catagory"><span class="label label-default">[[+tv.article.label]]</span></div>
              				<div class="post-gradient">
              					<img src="[[+tv.article.picture:phpthumbof=`w=280`]]" alt="[[+alt]]" class="img-responsive post-img">
              				</div>
              
              				<div class="post-content">
                                      <span class="post-font-date"><i class="fa fa-calendar" aria-hidden="true"></i> [[+publishedon:date=`%B %e, %Y`]]</span>
                                      <p class="post-font-header">[[+pagetitle]]</p>
                                </div>
              
              					<p class="post-text">
                                        [[+content:striptags:ellipsis=`245`:typography]]
                                   </p>
                              </a>
              	</div>
              </div>


                • 17301
                • 932 Posts
                That should work to be honest.

                I'd say try again specifying the contexts (just list them all to test) and if that fails then maybe try reverting to getResources to see if its an issue with pdoResources.
                  ■ email: [email protected] | ■ website: https://alienbuild.uk

                  The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.