Christophe Posted April 17, 2015 Share Posted April 17, 2015 @triples When you edit a page, go to the "Settings" tab and under "Templates" change "Home page" for whatever other option there is. The following pages are using these templates: About -> "Basic page" Features -> "Basic page" Services -> "Basic Page with Sidebar items" Contact us -> "Contact us page" You can of course also still use "Home page" and replace the content of the home.php template file with the content of another template file, if you want the homepage to be a little different for exemple. This profile uses a "delegate approach". 1 Link to comment Share on other sites More sharing options...
Gayan Virajith Posted April 18, 2015 Author Share Posted April 18, 2015 Hi Christophe, Thank you for these details Gayan. I'll look at them. But do you have an idea about the translation of the "missing required field" error message. Can we translate it elsewhere than in the core file where it is? Found this nice post by Soma hope this would solve your problem. Link to comment Share on other sites More sharing options...
tpr Posted April 19, 2015 Share Posted April 19, 2015 Thanks for the site profile. This is golden! I will definitely try it in my next Bootstrap project (currently I'm more into Uikit). 1 Link to comment Share on other sites More sharing options...
Christophe Posted April 20, 2015 Share Posted April 20, 2015 Hello Gayan, I'll look at this later. Thank you. I'm thinking that perhaps it would be solved if I installed another language. I'll have to check. Link to comment Share on other sites More sharing options...
Christophe Posted June 8, 2015 Share Posted June 8, 2015 Hi, I have installed the French language and set it up for the Guest user. It doesn't change anything apparently. I still can't have the "missing required field" error message (of the contact page) translated. Solutions? Thanks in advance Link to comment Share on other sites More sharing options...
MikeB Posted June 15, 2015 Share Posted June 15, 2015 First of, Gayan thank you very much for this excellent profile. I am using this as a starting point on all my own profiles for client work. I have made additions/modifications, but the basis is the same. One question I have is with regards to passing variables on through to the functions in _functions.inc and then on to templates. Specifically I am using Ryan's excellent form builder module. And would like to use his embed method C to embed the form directly into my template. The template I want to embed into is a new version of page-block-type-x. To get the form embedded on to a page is easy. Just include the following in the _init.php file $form = $forms->render('contact'); Then use this on the page template. echo $form; However if I add the second to my page-block-type-x template it says "undefined variable form" I have tried putting the first "render" part into the function in _functions.inc, but then it says "undefined variable forms" Any ideas how I can get this data/variables to bubble through to the partial template? Link to comment Share on other sites More sharing options...
Gayan Virajith Posted June 15, 2015 Author Share Posted June 15, 2015 Hi Mike, Thank you for using this site profile. First I will try to replicate your issue and get back to you as soon as I can. (Sorry sending via mobile) Link to comment Share on other sites More sharing options...
MikeB Posted June 16, 2015 Share Posted June 16, 2015 Thanks Gayan, I have also opened a thread on the Form Builder forum to see if anyone there can help. If I get an answer here or there I will cross post so it is available in both places. I did this as I was not sure where the issue is. More then likely something I am doing wrong due to my lack of PHP knowledge. Thanks once again for the excellent work you did here. Link to comment Share on other sites More sharing options...
MikeB Posted June 21, 2015 Share Posted June 21, 2015 Ryan replied back to my issue on the Form Builder support forum. Here is the solution he suggests. I'm not familiar enough with this profile to suggest the ideal way to handle this, but it does sound like just a matter of variable scope. You might want to bundle your $form variable as a new API variable from your _init.php file, so that you can access it from anywhere. The way you can do this is: $this->wire('form', $forms->render('contact')); Then when you need to access it later, access it like this: $form = wire('form'); Also, for that first example, if $forms is out of scope where you are accessing it from (like within a function or something), then access it as wire('forms'); And the way I did it myself, before I saw his post: I did get this working finally. Added $form = wire('forms')->render('contact'); up one level in the _functions.inc Then just echo the form variable in the markup template. Both work, but it's my guess that Ryan's is the better way, as he has way more experience then I have. 1 Link to comment Share on other sites More sharing options...
saboor1982 Posted July 20, 2015 Share Posted July 20, 2015 Hi GayanThank you for sharing your nice theme. I just want to add a multi language option. Can you help which code and where to add that? Link to comment Share on other sites More sharing options...
Gayan Virajith Posted July 26, 2015 Author Share Posted July 26, 2015 HI saboor, Thanks for using the theme. Really sorry for late response. I just want to add a multi language option. Can you help which code and where to add that? Here are the steps: (it is easy) Install `Languages Support` and `Languages Support - Fields` modules Change `title` field type from `PageTitle` to `PageTitleLanguage` Add extra Languages on `Setup` > `Languages` Change `body` field type from `Textarea` to `TextareaLanguage`. (change other fields accordingly) For the multi langage selections please refer the following post. https://processwire.com/talk/topic/7798-exclude-users-current-language-from-list/ Please let me know if you need further help. ~ Enjoy with ProcessWire. Thanks Link to comment Share on other sites More sharing options...
biotech Posted August 16, 2015 Share Posted August 16, 2015 (edited) Hello Gayan, Thank you for sharing this profile! I have been away from PW for a while and it was nice surprise to see the community thriving and all the improvements over the revisions. One of the aspects that PW lacked was 'themes' to get the end users to start blogging and publishing content right away. I know this sample profile is geared towards developers and admins but if I may suggest different naming of Pages. Honestly, I had to look up 'hero unit'...never came a cross this concept in any language but I guess design and development are merging in web world. Anyhow, here is what I would suggest for Tools pages: - It would be nice if 'Featured Content' could trim and pull field(s) from existing content like other Pages rather then static entries on their own but it works well for this scope. - 'Storage & settings' for SEO is bit misleading as well, maybe just 'SEO and Page Blocks' since there is not much 'storage' per say? - SEO fields = if left empty they do not use the 'Title' and 'Description' of the current page but rather what is specified on 'Home' page. Wording is little misleading and will cause every page to be presented as the same. While handy, IMHO, every page should pull its own SEO even if only from 'title' and 'body' fileds of the current page. - Top drop-down menu seems a bit redundant where Parent page is listed twice. Any suggestions? I have only spent an afternoon working with this profile and it absolutely fantastic. If fact, it will be the core of what I use for my next project. Thanks for your time. All the best. Edited August 17, 2015 by biotech 1 Link to comment Share on other sites More sharing options...
Gayan Virajith Posted August 17, 2015 Author Share Posted August 17, 2015 Dear Biotech, Thank you so much for taking your time to play around with blue-vr theme. Also I greatly appreciated for your feedback. - 'Storage & settings' for SEO is bit misleading as well, maybe just 'SEO and Page Blocks' since there is not much 'storage' per say? You are right, we should put SEO and Page Blocks instead of `Storage & settings`. - SEO fields = if left empty they do not use the 'Title' and 'Description' of the current page but rather what is specified on 'Home' page. Wording is little misleading and will cause every page to be presented as the same. While handy, IMHO, every page should pull its own SEO even if only from 'title' and 'body' fileds of the current page. Totally agree and will fix this on upcoming release. - Top drop-down menu seems a bit redundant where Parent page is listed twice. Any suggestions? Noted this issue, for now I would suggest to use another field to display top menu item caption. So we can easily fix this problem. Thanks again for your feedback. ~ Enjoy Link to comment Share on other sites More sharing options...
biotech Posted August 17, 2015 Share Posted August 17, 2015 Hi Gayan, Happy to provide feedback and thanks for a quick reply. While at it, I noticed some css play is off. If you create a new 'Common page block' (like Contact us banner) the link in the content does not get wrapped with the same attribues. eg. "Contact us banner" <a class="btn btn-default btn-lg" href="/contact-us/">Contact us <em class="fa fa-fw fa-angle-right"></em></a> eg. "Some new banner" <a href="/sandbox/pw/page/">Go to my page</a> Both are using same template of 'Common page block' and source code is the same in the body field and 'Render Image as a background' option is used. All the best. 1 Link to comment Share on other sites More sharing options...
Gayan Virajith Posted August 17, 2015 Author Share Posted August 17, 2015 Dear Biotech, Thanks, Got it will fix this on next release. Link to comment Share on other sites More sharing options...
biotech Posted August 17, 2015 Share Posted August 17, 2015 (edited) Hi Gayan, Found a few more bugs, not sure if this is due to bootstrap framework, is that - if you use 'On page block' with an image and then disable css images are rendered twice on the page. Not ideal for accessibility. - 'Feature/Service set' ignores re-ordering of pages and it seems to sort by page ID - Removing 'Reference' = deleting or unpublishing each entry seems the be the only way to 'hide' them as they are not a Common block. Leftover css leaves padding. - On 'Contact Us' page leaving Sub title for google map empty still outputs default txt of "Find us on Google Maps". Edited on 'google-map.inc' but still 2 column layout is imposed if map is not desired. Another thought for 'SEO fields' mentioned above, we could use Home page 'SEO title' to hold starting value eg. "Our Website | " and then append the current page title (or SEO field if not empty) resulting in "Our Website | Contact us". HTH All the best. Edited August 19, 2015 by biotech Link to comment Share on other sites More sharing options...
biotech Posted August 21, 2015 Share Posted August 21, 2015 Is there a way to add 'home' page in the navigation (top/bottom)? My hack is to edit "_navigation.inc" ... $page = wire('page'); $out = ''; $out ='<li><a href="/myroot/" title="Home">Home</a></li>'; // hardcoded link to 'Home' foreach($items as $item) { .... But I am sure there is a better way as well as to inlude the css active state. Thanks so much. Link to comment Share on other sites More sharing options...
Gayan Virajith Posted August 22, 2015 Author Share Posted August 22, 2015 Is there a way to add 'home' page in the navigation (top/bottom)? Trick is to modify the `links` field `Selectable Pages` into `Custom Selector`. Go to Setup > Fields > links Click on Input tab Under Selectable Pages Remove `Parent of selectable page(s)` settings Add custom selector under `Custom selector to find selectable pages` Thanks 1 Link to comment Share on other sites More sharing options...
biotech Posted August 22, 2015 Share Posted August 22, 2015 Thanks Gayan, I used the "parent=/" as a custom selector, worked great for the bottom navigation of page listings. Any workaround for the top nav? Link to comment Share on other sites More sharing options...
PensiveOwl Posted September 29, 2015 Share Posted September 29, 2015 Hello Gayan, .. a long time lurker here, your great theme provoked me to finally make a post;) Apologies, if this was asked/answered before but is your theme retina ready? Thank you, Ian Link to comment Share on other sites More sharing options...
Gayan Virajith Posted September 29, 2015 Author Share Posted September 29, 2015 Hi Ian, Thanks for using blue-vr. I am sorry it is not retina ready. Link to comment Share on other sites More sharing options...
PensiveOwl Posted October 1, 2015 Share Posted October 1, 2015 Hi Gayan, .. Appreciate your prompt response. Well, that's what I half-expected. What would you say, how much effort (time/money) would it take to upgrade this to a retina-ready template? Thanks, Ian Link to comment Share on other sites More sharing options...
Gayan Virajith Posted October 1, 2015 Author Share Posted October 1, 2015 Hi Ian, Problem is, I do not have retina ready hardware to work on Thanks Link to comment Share on other sites More sharing options...
PensiveOwl Posted October 5, 2015 Share Posted October 5, 2015 Hi Gayan, No worries, I understand. .. just started to play around with the template, it looks very neat and professional.. I like it so far:) I'll be back if I come across any issues.. Hope I won't bother you and all the Processwire experts too much;) Gayan, thank you for all your efforts and time creating this great template! Ian Link to comment Share on other sites More sharing options...
L. Leopold Posted October 16, 2015 Share Posted October 16, 2015 Dear Gayan, I'm a bloody beginner in processwire, my apologies beforehand...I installed your Blue VR Site and I really love it. I just have one big problem and I couldn't find anything helpfull regarding my problem in this forum. I want to show a simple photo gallery on one page of the site and I couldn't manage to make it work. Even with the easiest tutorial it didn't work https://processwire.com/docs/tutorials/galleries-short-and-long/page2 You have the Images field set up in your sites structure, but it doesn't show images when used. My problem is, that I don't know how to add markup to the template file, so that the images show up. I think it isn't working because I don't really know how the delegate template thing really works. Thanks in advance, Leo Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now