Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configure the multimedia components to get published inside the website folder

Need to publish the JS and CSS files using multimedia components. The multimedia components gets published outside the website folder similar to the Images in

“C:\tridion\temp\pub14\Includes\scripts”

Any Idea How to Configure the multimedia components to get published inside the website folder.

We are using IIS to deploy website

like image 386
Ajo Mathew Avatar asked Nov 19 '12 11:11

Ajo Mathew


Video Answer


1 Answers

You can control this by editing cd_storage_conf.xml. In this file you can configure where binaries go for each publication. For example: you probably have something like this configured: <Item typeMapping="Binary" cached="false" storageId="myStorageId"/> and this myStorageId storage is defined inside the Storages element like:

<Storage Type="filesystem" Class="com.tridion.storage.filesystem.FSDAOFactory"
         Id="myStorageId" defaultFilesystem="true" defaultStorage="true">
    <Root Path="c:\temp\" />
</Storage>

If that is the case then you need to change the root path to point to the root of your WebApplication in IIS. More about how to configure the storage you have here (logon required).

like image 188
Daniel Neagu Avatar answered Sep 20 '22 13:09

Daniel Neagu