We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Get path to the images folder of the theme from ow_system_plugins | Forum

Topic location: Forum home » Development » Themes
Julien Cuenin
Julien Cuenin Feb 28 '14
Hello again,


Sorry for the multiple post but I am working on a theme at the same time and the questions come with the changes I make.


Is it possible to get the path to the images folder of the theme from the ow_system_plugins files? Is there a variable for that?


Thank you in advance and have a good day,


Julien


Julien Cuenin
Julien Cuenin Mar 4 '14
Nobody can give me indications about this either?
Alia Team
Alia Mar 4 '14
Hello Julien,

This section of the forum is for community members to help each other. Our support team rarely check it.

Can you explain in more details what you would like to achieve as an end result?
Julien Cuenin
Julien Cuenin Mar 5 '14
Hello again Allia,


Thank you for taking the time to answer me.


What I am trying to achieve is to modify what seems to be core files in the ow_system_plugins folder such as the sign in page for example.


I need to display some images there, and the only solution I found so far is by using an empty div with an image background. I then put the reference to the image in the css file.


What I would like to do is the following :


<img src="{path_to_the_image_folder_of_the_theme}">


I saw that some tags are existing but couldn't find a list of all the tags available in the documentation.


Also could you please advise me on how to override core files a good way? I am used to create child folders or themes in WordPress and Magento for example and would love to know if that is possible in Oxwall. 


I noticed a "base" folder in "ow_system_plugins", does it mean I can create a "custom" folder for my changes? The main goal of this would be not to loose any changes I made when upgrading to newer versions of Oxwall.



Julien Cuenin
Julien Cuenin Mar 5 '14
Oh and I almost forgot, ı found your bitbucket repository (https://bitbucket.org/oxwall/public) but couldn't see any wiki or issue tracker there.


Is there a particular reason for that?


I am willing to help you improve the documentations and everything as I am learning how to use, modify and create elements for Oxwall, how could I get involved?

Alia Team
Alia Mar 5 '14
Julien,

There is not an easy way to edit .html of system pages via themes. So you will not be able to create a theme, which will add new elements to sign-in page's html upon installation. 

This needs to be done manually. So, sign in page. To add an image there you will need to edit ow_systemplugins/base/views/sign_in.html  and introduce new div's you need there.

If what you would like to achieve is just adding certain background to sign in page, then you might find this doc useful: http://docs.oxwall.org/overview:custom_design#sign-in
It describes how background image can be added via CSS. Any changes done in admin panel>>edit CSS, will not be lost if you update the software/theme.

Unfortunately any changes you will do in ow_system_plugins ( within source code in general) will be erased when software is updated. So there isn't any way around this, except keeping track of what you did and then making changes all over again after update.

Alia Team
Alia Mar 5 '14
Regarding contribution to docs. You can write any doc you think will be useful and send it to me ( support@oxwall.org) General guidlines are listed here: http://docs.oxwall.org/contribute:documentation_standards . I will go though the doc and everything is ok, I publish it myself  ( so that you don't have to worry about the styling of the doc. The content is what is important).
Julien Cuenin
Julien Cuenin Mar 5 '14
Alright thank you for your answer,


Then I will just carry on editing the core files of the installation.


I basically would like to create a theme from scratch and use the html/css framework foundation in it.


I will get into writing doc once this projet is finished and that I have a full understanding of Oxwall. Thank you for these ressources.