Creating a client portal with unique file URLs

SOLVE
Highlighted
Occasional Contributor

Hi, I've purchased an HTML template (not from the Marketplace) and loaded it into my portal. I am making a client portal page, and I want to use the same template for each client I have so that they can easily access all their assets without having to email me or a team member.


Examples of assets would be their personas, an article request form, a link to their keyword analysis spreadsheet etc. Naturally, the URLs of these files must be unique for each page, so how do I insert a widget / module 
inside this HTML code so that I can change the URL in a module when editing page?

 

I just want to have a module with a label (i.e. "Keyword analysis") in the left navigation in the editor, then just dynamically add the URL for that unique client asset.

 

The default HTML code is:

 

<a class="project-item" href="DYNAMIC LINK HERE"></a>

 

It should be so simple to make, but I just can't figure it out. Any ideas?

 

Thanks! 

Reply
0 Upvotes
1 Accepted solution

Accepted Solutions
Regular Advisor

You can define a text module to input the URL, set the export_to_template_context to True and then use that text to create your link,

 

{% text "keyword_analysis_link" label="Keyword analysis link", value="http://example.com/link", export_to_template_context=True%}

 

<a class="project-item" href="{{keyword_analysis_link}}"></a>

Reply
0 Upvotes
1 Reply 1
Regular Advisor

You can define a text module to input the URL, set the export_to_template_context to True and then use that text to create your link,

 

{% text "keyword_analysis_link" label="Keyword analysis link", value="http://example.com/link", export_to_template_context=True%}

 

<a class="project-item" href="{{keyword_analysis_link}}"></a>

Reply
0 Upvotes