Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Localize static footer/header

$
0
0
Couple of questions :) Sorry im very new at this ..

"Make a razor function that emit a record based on the title or a datareference"

Where and how do i do that? I created a global data type called Layout.Reusable (with two field title/content) i added data record to it called Footer. (is this what you ment by a header/footer record?)

"Add your function in the appropriate places, emitting the header and footer "

Do i call the function in my razor template (in my case mastertemplate.cshtml)?

Eventually my footer will be editable in the content tab right?

Cheers

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>