I know there is a var called asset_link but this is the current asset's link. I want to get the sites url so that i can use it behind the logo of the site.
Do something like this exist?
You'll need to use a constant button design area. I dont have the code handy to produce this, but it should be in the design manual.
Basically, you configure a "constant button" that is essentially a URL that points to a an asset. You then customise the design and configure the customisation to point the constant button at the site.
If the design manual isnt any help, post back and someone will find some sample code for you.
You can do this with the Asset Lineage design area:
[html]<MySource_AREA id_name="site_link" design_area="asset_lineage">
<MySource_SET name="levels_to_print" value="1" />
<MySource_SET name="prefix_with_home_link" value="true" />
<MySource_SET name="suffix_with_current_link" value="false" />
<MySource_SET name="prefix_with_divider" value="false" />
<MySource_SET name="suffix_with_divider" value="false" />
<MySource_ASSET>
<a href="<MySource_PRINT var='asset_link' />"><img src="mysource_files/logo.jpg" /></a>
</MySource_ASSET>
</MySource_AREA>[/html]
Basically, that creates a one-level asset lineage, and because you're prefixing with the Home link, that's the only one that prints.
Of course, this is only useful if you're using the same design across multiple sites. The rule of thumb with designs is to use as few design areas as possible, as this reduces the amount of processing required for each page load.