CMS Development

Thorstein
メンバー | Elite Partner
メンバー | Elite Partner

Creating a client portal with unique file URLs

解決

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! 

0 いいね!
1件の承認済みベストアンサー
ndwilliams3
解決策
キーアドバイザー

Creating a client portal with unique file URLs

解決

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>

元の投稿で解決策を見る

0 いいね!
1件の返信
ndwilliams3
解決策
キーアドバイザー

Creating a client portal with unique file URLs

解決

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>

0 いいね!