Developer forum

Forum » Rapido » Renaming design folder will cause settings not to take effect

Renaming design folder will cause settings not to take effect

Roald Haahr Jensen
Reply

I got a fresh Rapido and renamed the design folder 'Rapido' to the name of the site I was working on. Afterwards I experienced that changing fonts, colors etc. in website settings, it did not take effect anymore. I then renamed the folder to 'Rapido' again and all the changes mentioned before took effect. For a single website that is not really a problem, but say I wanted to run multiple sites using Rapido, but they were not supposed to be completely identical in terms of the templates used. That would be a problem.


Replies

 
Jennifer Johansen Dynamicweb Employee
Jennifer Johansen
Reply

Hi Roald 

I don't know your case good enough and what you are trying to achieve.
However, if you have two different sites you are able to create 2 different designs with website settings,
without copying the Rapido folder, since each website have their own variable_auto.less and min.css files.

But is it because you want to do different custom implementation in ignite and the custom_blocks on the different sites on the same solution?
If this is the case, then you should look at the Less_X.config file, there is a config file for each website (read more here https://doc.dynamicweb.com/documentation-9/content/items/dotless-items) If you edit the foldername or path, then it should also be edited here.




 

 
Lars Larsen
Lars Larsen
Reply

Hi Jennifer

I have two websites in my Rapido solution and they are supposed to run with different layouts. I have updated the two corresponding Less_[websiteId].config files where I have changed the name of the design:

<LessConfiguration>
  <DesignName>CustomerName_B2C</DesignName>
  <Minification>true</Minification>
  <WebsiteSettingsVariablesFileOutputPath>Files/Templates/Designs/CustomerName_B2C/css/rapido/abstracts</WebsiteSettingsVariablesFileOutputPath>
  <LessFilesFolder>/Files/Templates/Designs/CustomerName_B2C/css/rapido/</LessFilesFolder>
  <VariableFiles>/Files/Templates/Designs/CustomerName_B2C/css/rapido/_variables_1.auto.less,/Files/Templates/Designs/CustomerName_B2C/css/base/abstracts/_variables.less</VariableFiles>
  <OutputPath>/Files/Templates/Designs/CustomerName_B2C/css/rapido/</OutputPath>
  <UseCleanVariableNaming>true</UseCleanVariableNaming>
</LessConfiguration>

But still the two websites are referencing the original design (/Files/Templates/Designs/Rapido) even though I have selected the new designs for the two websites in website settings. What am I missing?

 
Lars Larsen
Lars Larsen
Reply

Hi

I had renamed the original Rapido design folder. But now I reestablished the folder and now things start to work again. My problem was that images where missing in website settings in the backend.

I see that there are a ton of references in the Rapido design to "/Files/Templates/Designs/Rapido/". When copying the Rapido design should I then make a global search and replace of that reference so it reflects the new design e.g.:  "/Files/Templates/Designs/CustomerName_B2C/" ?

 
Nicolai Pedersen
Reply

We do not know. We never did that and did not design for it... So maybe!

 

You must be logged in to post in the forum