-
Posts
1,419 -
Joined
-
Last visited
-
Days Won
7
Everything posted by Peter Knight
-
Jealous of your broadband speed. Stuck here with a 4MB connection You on fibre optic?
-
Can this be tweaked to dynamically change an amount on a PW site? Say I had a product listed for sale at $60 (USD) I'd like to have a US and a UK flag. Clicking US or UK flag would convert the $60 to £80 (or whatever).
-
Quick update. If you're running the latest version of FoxyCart, embedding field values in FC links will work. When I originally posted, I think FC was running a slightly older version.
-
Cheers. Will do. So that was the issue or a general suggestion?
-
I have two basic text fields called Product and Price. According to FoxyCart docs, I can manually create a URL as follows which will add a Picture Frame worth 100 dollars to my cart. <a href="https://YOURSTORE.foxycart.com/cart?name=PictureFrame&price=100">Add picture frame</a> Is there a way to swap out the product and price for the values in my fields? I've tried the following but it never converts my fields into actual data <a href="https://YOURSTORE.foxycart.com/cart?name=<?php echo $page->product; ?>&price=<?php echo $page->price; ?>Add picture frame</a> I There are some errors in the formatting above but you get my thinking. Typing on ipad
-
Thanks Adrian. Hoping I'll eventually get "there" :-/
-
I've followed a tutorial on setting up tags and have a tag field as follows: type=page allow new pages to be created from field=yes input field type - Asmselect Using the following on my template, I can output all the tags on my site <H3>Tags</H3> <?php $tags = $pages->get("/tags/")->children->find("sort=title"); echo "<ul>"; foreach($tags as $tag){ //iterate over each tag echo "<li><a href='{$tag->url}'>{$tag->title}</a></li>"; // and generate link to that page } echo "</ul>"; ?> What I'd like to do is echo only the tags used on the page being displayed. I thought the trick was to use $page instead of $pages as follows <?php $page->get("tags"); foreach($tags as $tag){ //iterate over each tag echo "<a href='{$tag->url}'>{$tag->title}</a></li>"; // and generate link to that page } ?> No joy. I think I know why. it's because my field called tags has a separate page for each tag so I probably need to use something like $page->get"tags" ->children Obviously thats not realy php but my literal interpretation. Just wondering if I'm on the right track and where I am going wrong.
-
Advice on structure/build of following
Peter Knight replied to Peter Knight's topic in Getting Started
Thanks for all the amazing answers. Best thing to do from here is to build a small demo and then come back to you. -
Advice on structure/build of following
Peter Knight replied to Peter Knight's topic in Getting Started
But in general, would you suggest housing each "section" (Bar, Maker, Seller) as a top-level parent folder? -
Advice on structure/build of following
Peter Knight replied to Peter Knight's topic in Getting Started
I've no idea right now but it'd need to be scalable. More than 1. Less than 100,000. -
Hi guys I have an upcoming build and I'm wondering how best to structure the data in the admin. What would you do? The site focuses around the following which are all interlinked and cross referenced/tagged etc Chocolate Bars, Confectioners and Chocolate sellers/shops Chocolate Bars A section containing a page on every cholcate bar where bars are products. Each bar would also have a type such as "Milk Chocolate" or "Dark Chocolate" and you could click on these types to bring up a list of the same types of bars matching that variety. Mars Aero Mint Hazel-nutto Milky Chocco etc etc Confectioners A list of every chocolate maker in the World. Each confectioner would have a profile page and a list of bars they make. Bars link back to the Chocolate Bar pages while locations and countries links back to a list of Confectioners in the same country. Cadburys Hersheys etc etc Shops Every shop that sells chocolate. Each bar they stock would link back to individual Chocolate Bar pages. Shop 1 Shop 2 Shop 3 etc I think my uncertainty regarding best approach is because the volume of pages will be huge and I want to get the structure correct from the start. On the front-end I gather I'll be using selectors quite heavily and using tags a lot but right now I'm more interested in the back end structure. I thinK Ryan's demo Skyscraper site will be worth a download as it looks kinda similar.
-
Love the navigation. The site is relatively small so it works. It there were lots of sub pages you'd probably handle it differently.
-
I've an idea for a module and wondering what the best way forward is. Are the options basically as follows: - draw up wireframes and approach developers privately for costs - post the wireframes publicly in case it's of interest to a module developer - send wireframes to Ryan and see if it's on the roadmap Any advice? I'm just considering it right now.
-
No issues here. Working great. Congrats Any plans to have the actual tree under the Pages link ?
-
Anyone else tried the new Reno Theme by RenoBird (Tom) ? Looks reall nice and would definitely recommend it. BTW that does say 2.5.1 in the footer
-
Upgraded to 2.5, duplicate modules warning, etc...
Peter Knight replied to douglas81's topic in General Support
Hey Douglas Can't offer any advice there unfortunately but have you tried Core Upgrade module? https://processwire.com/talk/topic/7525-module-processwire-core-upgrade/ It'll allow you to quickly upgrade (and downgrade) PW as you need. -
Cheers 3fingers. They're on my tiny things list IE the massive list of tiny things I need to find time to do I think it's the Foundation framework which is auto-generating these ugly things. The select lists are not in the actual templates.
-
Thanks for the tip re. Url and Path History. I've updated the URL yet the link above is till broken even though Path History is installed. I't's a great CMS. I meant to be further into my learning but am having too much fun with PW right now.
-
How would you phrase it? Must admit, I'm happy with the tone. Interested in your input too.
-
Hehe. I must admit that some of my favourite brews right now are actually from the UK. But like my CMS preferences, they're from micro breweries and not the usual, obvious choices
-
Hi guys I've started a new blog on Content Management and while it's not even remotely finished, thought I'd share here. I'm hoping to fill it with news, interviews and tutorials as I proceed. Content is pretty thin at the moment and there's plenty of design bits to fix. http://www.CMSsizzle.com Why and who? The target audience isn't so much you hard-core, seasoned CMS professionals but more likely to be oriented towards people who are new to the CMS's. I also want to highlight the great features of my favourite CMS because I think CMS developers should be more aware of what other platforms are doing. Because it's built in PW, it helps me learn PW and the Blog Module. Anyway, I'll give it a go and hopefully I can find time to update it regularly-ish
- 28 replies
-
- 11
-
-
Ah. I was going to mention that I'd only read about 50% of the thread.
- 206 replies
-
- standarisation
- templates
-
(and 1 more)
Tagged with:
-
It strikes me that a more accurate topic of this thread could be "how to make PW more beginner friendly." Not to make light of the OPs issue and invaluable insight but Ryan (and co) have already done an incredible job of making PW user-friendly. Maybe thats just semantics (user-friendly Vs beginner friendly) but I wouldn't say PW isn't user-friendly.
- 206 replies
-
- 7
-
-
- standarisation
- templates
-
(and 1 more)
Tagged with:
-
The first time you create a field, there is an info tab which says This field is not currently in use by any templates. It would be real time saving at that point to select the Templates which can use the new field. Otherwise we have to save the field ... browse to Templates ... find your template ...click it and add and reorder it there.
-
Output pages matching blog categories
Peter Knight replied to Peter Knight's topic in Getting Started
Horst - thanks for your time and all the code samples. Actually, i think I've made a great job of over complicating this. I'm thinking now that my categories are nothing more than a value in a field. IE I have a field (drop down box) called categories and the values are cats, dogs and birds. Therefore, I can just use a selector to target and call all posts that have a value matching cats and do the same for dogs and birds. Going to try it in 5 mins.