Comments (13)
I currently have a solution for theming which needs a bit more testing before it is rolled out. It works by having different folders located here for each theme:
https://github.com/etewiah/property_web_builder/tree/master/app/themes
In the application_controller I have a set_theme_path method that reads the “theme_name” value for the current agency.
It then uses prepend_view_path to add the theme path to the list of locations that rails will check for a template. The best explanation of how prepend_view_path works can be found here:
http://climber2002.github.io/blog/2015/04/06/digging-rails-how-rails-finds-your-templates-part-4/
The set_theme_path method also sets the self.class.layout value.
Until I implement an admin page section for changing themes, the easiest way to experiment with the themes feature is to run the following from the rails console:
agency = Pwb::Agency.unique_instance
agency.theme_name = "berlin"
agency.save!
from property_web_builder.
I have implemented an experimental ui for changing the theme. Have a look here if you are interested:
https://propertywebbuilder.herokuapp.com/en/admin/website/themes/default
from property_web_builder.
Looks like that template is offline as of today. Maybe the guy is updating his site
Archive page here, but download link doesn't work:
from property_web_builder.
Hi @mmikeww, I've actually implemented that theme. I just need to test it and make sure it works well. Are you willing to help with this?
from property_web_builder.
Sure, can you put it up on the demo site so I can click around?
from property_web_builder.
It is the Berlin theme which you can set from here:
https://propertywebbuilder.herokuapp.com/en/admin/website/themes/default
I have just now set the demo site to the Berlin theme.
from property_web_builder.
It looked fine to me.. Was there something in particular you wanted me to test?
One thing I noticed, but not theme specific, is that it seems on your other re-renting.com site, on the buy/rent pages, there are extra fields to filter a search with. But on the pwb.herokuapp.com demo site, the search fields are more limited
from property_web_builder.
Okay, its good everything works for you. I did some small customisations for the re-renting site which I will put into the main project soon.
BTW, I'm doing a survey to try to understand what things to prioritise so would be good if you can give some feedback here:
https://goo.gl/forms/xQkvBKmE1p8PUhzn1
from property_web_builder.
from property_web_builder.
Ruby on Rails cannot be installed with ftp. If you are not familiar with installing ruby on rails then use heroku.
In the readme there is a big purple button with the text "deploy to heroku" - just click it and follow the instructions.
If you encounter any problems please open a new issue. This issue is specifically about adding extra templates.
from property_web_builder.
Ok i saw that button but in the heroku you can use your own domain? in the example i just saw something like domain.heroku.com
from property_web_builder.
Hi @acsmartinho , I realise you're new to github so this is some friendly advice. When you have a question please open a new issue. This issue is about themes so everyone who is participating will get notifications when you mention something. It is not nice for them to get notifications when you are asking about something not related to themes.
It is very easy to open issues. Here is an issue I just opened with your question (and an answer).
#39
from property_web_builder.
I've decided to change the approach to theming. I am now working on implementing themes as Vue.js / vuetify frontends. The project for this is here:
https://github.com/etewiah/pwb-themes-base
This makes it super easy to adapt the front end which will talk to the rails server via API calls
from property_web_builder.
Related Issues (20)
- Error when uploading images to Cloudinary HOT 2
- Mutiple Area Unit HOT 2
- Default Area Unit HOT 1
- Who's using PropertyWebBuilder?
- Google Maps API error: RefererNotAllowedMapError HOT 1
- Project communication channels HOT 1
- Googke Maps Api Key HOT 5
- Problem Deploying app to Heroku HOT 7
- Adding currency HOT 1
- How to edit code for the Heroku deloyed app HOT 2
- Error deploy to heroku HOT 4
- Document deployment to heroku alternative with a free plan HOT 14
- Alterntive to heroku HOT 1
- > I would love to work on this. Fly.io is a good alternative HOT 1
- Heroku error HOT 1
- Docker HOT 1
- Cant start app HOT 5
- Adding Philippine Peso to the currency. HOT 1
- Could not find gem 'globalize (~> 5.1.0.beta2)' HOT 5
- Customize admin views HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from property_web_builder.