-
Posts
4,296 -
Joined
-
Last visited
-
Days Won
79
Everything posted by diogo
-
It's all on the field's settings. Go through them and you'll find it.
-
You can use url segments on the homepage to achieve this https://processwire.com/docs/tutorials/how-to-use-url-segments/ Go through it, and tell us if you don't know how you can use them in this case. We'll jump in and explain. edit: In some way you would be doing a simplified version of what is being discussed here: https://processwire.com/talk/topic/8894-how-to-implement-the-url-like-wordpress/
-
I think a balanced solution would be staying in the middle of both solutions discussed. Create pages for the years and use the url segments on those pages instead of the parent "posts" page: posts 2015 <-url segments would be used on the template for these pages post5 post4 post3 2014 post2 post1 This would make it easier to use the "posts" for listing the posts and use the year pages only for the purpose of displaying the individual post pages. Also, you could reduce the url segments to 3 (the default) instead of 4. You don't really need to use a range of timestamps to decode the url. All you need for getting the right post is the last segment (the name), and you can use the day and month to validate the page, by confirming that they match the post's date and throwing a 404 when it doesn't. The reverse (creating the urls) is just as easy. You can, for instance, display the parent's url (mysite.com/2015/), add the month and day using the posts date and PHP's time function and add the post's name in the end. I'm not giving code examples because you said you would like to write your own code for learning purposes
-
Not a problem in this case. You would use the template of the parent page, "posts" in this example: Posts post1 post2 post3 The post pages themselves wouldn't need a template, since they wouldn't be shown directly. The only problem I see with this approach is that you wouldn't be able to use the $page->url method for getting this pages, but create your own method to generate the new urls Anyway, I'm not sure that these WP urls are really better than mysite.com/posts/post-name
-
I agree, this would be a mess for the user
-
Seriosuly? See here: Google "apache localhost subdomains" to know how to do this.
-
Best thing to do is to add it to a template and print_r() it from a template file to see what kind of result you get
-
I see two Teppos there ps: by the way, Eelke, I quite like your small yellow / Gill sans site
-
Welcome to the forum! Great to hear that you're liking PW, hope we'll be hearing from you often from now on
-
Outputting relational data nested in a repeater field
diogo replied to kathep's topic in Getting Started
Oops... actually not, mine is this one https://www.google.com/cse/publicurl?cx=015625539732074082840:-bacwk0s1qw, that one is from mr-fan https://processwire.com/talk/topic/7298-google-custom-search-for-your-browserbookmarks/?hl=%2Bgoogle+%2Bcustom+%2Bsearch If you use Chrome, this is what I do https://processwire.com/talk/topic/6196-easy-search-on-pw-forums-with-google/ -
Outputting relational data nested in a repeater field
diogo replied to kathep's topic in Getting Started
That would have been me edit: oops https://processwire.com/talk/topic/8817-outputting-relational-data-nested-in-a-repeater-field/?p=85262 -
Outputting relational data nested in a repeater field
diogo replied to kathep's topic in Getting Started
No offense taken I'm not a great programmer, I'm more a designer-that-get-things-working and I feel very comfortable with using includes. My code looks so cozy between a include('header') and a include('footer') that I never had the urge to change how I do things. -
Outputting relational data nested in a repeater field
diogo replied to kathep's topic in Getting Started
Maybe your includes are crappy, but I love my includes -
https://processwire.com/api/modules/multi-site-support/ I use option 1 from here on my production server, works perfectly. Just be aware that all websites that you create using this system will be tied to the same version of PW, so upgrading for one will upgrade for all. I never had any problem with this myself.
-
This is why I have a problem with some of your comments, you tend see them as the truth (at least that's how they sound to me). We are never the owners of the truth, we have opinions, and should give them knowing that they are nothing more than our opinion. I'm not trying to annoy you, just telling you how your posts may be read by others in case you don't have that notion. You're a valuable member and new people will take your words very seriously based on your number of posts and likes, this alone gives you an extra responsibility, and you should be aware of it. I must remind you that you were not an easy newbie Anyway, just to be clear. We all love to have you here
-
I agree with Charles. @pwired, sorry but honestly I find that you are too harsh, if not insensitive, in some of your comments. And they don't always make sense actually. Edit: Charles = cstevensjr
-
Here is a small clue https://processwire.com/talk/topic/3636-watch-fast-roderigo-meat-boat-movie-in-the-nude/?hl=%2Bdrupal+%2Band+%2Bjoomla#entry35594
- 1 reply
-
- 1
-
Although I've been quite away from the forums lately, I always come here at least to check how things are going. A Merry Merry Christmas for all of you!
- 23 replies
-
- 20
-
Not really... besides an uncle of mine that didn't know about the project and contributed after seeing us there (), we didn't notice any special activity. TV and internet don't play very well along. The web addresses are not clickable and it goes a long way from watching TV to getting to the computer, writing the web address (if you wrote it or remember it) and contributing. But we are sure it had a good longer term value. It creates memory, and people will know who we are and what we are doing when they come across the project at other times.
-
Some want the readers to go to the website and publish only the summary, most commonly because of publicity.
-
There's a video from Erika and me in the Portuguese television talking about the muesli project. It's in Portuguese but enjoy https://www.facebook.com/mueslicafe/posts/1552098018335775
-
Twitter and PW are as social as I can get in the net, but looks interesting
-
Only the home page doesn't work. I tried http://maryvalecommunity.com/random and i had the 404 page with the navigation, then i went to the other pages using the navigation and they all worked, including the homepage when I went back to it. Now it always works. In inconito mode the same happens every time, if I go directly to the home, it doesn't work, but if I open any other page directly it works. Must be something with the cache, and only on your home template. Edit: if I delete the "wire" cookie, the homepage stops working.
-
Oh, the forum wasn't very helpful here. Well... has they say, better late than never Thats's just a normal ecommerce site with a range slider and some calculations. You can even do it with a native html5 range slider http://codepen.io/diogo-ed/pen/qEEbmo . Of course the calculations are only examples. Should even work the opposite way, price per piece would be lower id the amount is greater... There are also loads of jQuery plugins for range sliders http://www.unheap.com/?s=range