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

    I’m building a site that has a registered web user access that is controlled by weblogin PE. I have a situation that is technically challenging me:

    On the home page I’m using ditto to list the most recent news articles in the right sidebar. When the user is logged in they will see this ditto chunk:
    <div class="research1 clearfix">
    	<div class="span-1" style="text-align: right;"><strong>+</strong></div>
    	<div class="span-7 last">[+myDate:date=`%D`+] <a target="_blank" href="[~[+id+]~]">[+title+]</a> 
    	</div>
    </div>
    

    When they are not logged in they will see this ditto chunk:
    <div class="research1 clearfix">
    	<div class="span-1" style="text-align: right;"><strong>+</strong></div>
    	<div class="span-7 last">[+myDate:date=`%D`+]  <a href="[~296~]">[+title+]</a> </div> // the a href="[~296~]" points to the login page
    </div>
    



    Each article’s link is a weblink to a pdf that lives on the server. Each Weblink has an additional Tv named Custom1. I want to use loggedornot snippet so that if a logged in user goes to the homepage, and clicks on the link in the first ditto chunk, they are sent to the pdf, but when they are not logged in they will see the second chunk with all links pointing to the login page.

    Here is the hard part, for the user that isn’t logged in. When they click on the link taking them to the login page, I want them to see the Custom1 Tv’s content above the login form.

    How do I do this? Is this possible?

    You can go to http://www.fureyresearch.com/login-home.html to see the test homepage. You’ll see what happens when you click on the links on the right.

    Any help would be greatly appreciated.

    -Noah