Jump to content

nikola

Members
  • Posts

    253
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by nikola

  1. Thanks Pete! We'll have a matching pair...
  2. Thanks Ryan, I'll also try ProcessPermalinks from Nico, might be solution. I'll have to add categories and subcategories to the module though...
  3. Nico, ProcessPermalink module doesn't work with ProcessWire 2.2. I've made a core hack to buildEditFormURLs function (so permalink settings can appear in template url settings) but now every link goes to root url, on the front side and in the admin. Can you fix this please?
  4. Thanks guys for your feedback. Alan, that's a good idea, I will try to implement it into the theme.
  5. I'm gonna release this in couple of days, still isn't finished, polishing up the details. Here is a sneak preview...
  6. Sorry, I wasn't clear enough. I need to prepend category and subcategory name to url based on fields selected in article template. So if user selects in category field (page type) - category1 (they can select only one category per article) and in subcategory field multiple categories in which that article would suppose to appear for instance - subcategory1, subcategory2 it would prepend that selections to url stripping out articles container (page) from url. Example: Article - normal view url: /articles/some-article Article - virtual categories (strip /articles/, add /category/subcategory to url). /category1/subcategory1/some-article I know it would be confusing if article would have multiple subcategories selected but I've tried to do categories and subcategories with the tree approach but then when I would list articles it would show only those that are in certain category or subcategory. If user wants to have the same article in multiple categories then he would have to copy the same article to different subcategories. That way url's are working fine - the normal way but it's a problem if article belongs to let say 8 categories... Can PW check what category and subcategory/ies are selected in the article and based on that it would display url as described above? Thanks
  7. I have "Articles" page that hold all the articles. I have set up a page reference field where I can select different categories. How can I accomplish this in url/slug: Instead: www.domain.com/articles/article-name I'd like to have: www.domain.com/category/article-name Basically I need to strip out articles from the slug and add category that is selected in article itself through reference field. What happens if an article has multiple categories selected?
  8. nikola

    Icon Sets

    These are icons sets collected through webresourcesdepot.com: http://typicons.com/ http://iconmonstr.com/ http://brankic1979.com/icons/ http://www.jigsoaricons.com/ http://blog.twg.ca/2009/09/free-iphone-toolbar-icons/ http://www.iconshock.com/android-icons/?prd=affcomm63789 http://www.smashingmagazine.com/2011/12/29/freebie-free-vector-web-icons-91-icons/ http://365psd.com/day/2-209/ http://salleedesign.com/resources/mimi-glyphs/ http://www.justbenicestudio.com/studio/websymbols/ http://www.designshock.com/google-plus-interface-icons/ http://picons.me/download-social.php http://www.yay.se/resources/android-native-icons http://blog.roamdesign.co.uk/?p=272
  9. I like this site very much, concept, design, colors. Good work!
  10. This is really amazing! Would it be possible to use custom styling (css, jquery) besides/instead JqueryUI?
  11. I'm also interested if cost would be acceptable. It's only 2 hours flight time
  12. That might be it, but it's strange to me that it works normally on IIS with various MySQL version installed, but on Linux with various MySQL version installed it doesn't. Hope you'll find a quick fix soon
  13. I've decided to use repeaters and it turned out great (it's better for print template that I have). Here is the code: if($input->urlSegment1 == '') { echo $page->body; foreach($page->additional as $additional) { $slug = cleanURL($additional->title); echo "<a class='button' href='{$slug}'>{$additional->title}</a>"; } } else { foreach($page->additional as $additional) { $slug = cleanURL($additional->title); if($input->urlSegment1 == $slug) { echo "<h2>{$additional->title}</h2>"; echo $additional->body; echo "<a class='button' href='{$page->siblings->prev}'>Back</a>"; } } foreach($page->additional as $additional) { $slug = cleanURL($additional->title); if($input->urlSegment1 != $slug) { $additional->remove($input->urlSegment1); echo "<a class='button' href='{$slug}'>{$additional->title}</a>"; } } } I've enclosed slug function that I use in attachment (include it in article template). I hope someone will find it useful for their projects. Maybe it could be improved, but it's working fine. How it works: You add repeater field to an article and add title and body field to it. You must turn on URL segments in article template. When you add extra content through repeater field it shows extra content titles as links below content. When you click on some extra content's title it shows that content as URL segment and appands clean url to parent url of the article. Below extra content, links are shown to other extra content's defined through repeater field excluding the one currently showing. slug.php
  14. Soma, thanks for the example, I couldn't put it up on my own, that script from fist post was the closest I could find. I'll look into repeaters as well Thanks again for you help
  15. Ryan, that's a welcome update to PageLinkAbstractor module. It saves me a great amount of time so I don't have to track down missing or broken links, so these new features are really nice, specially error e-mailing.
  16. SiNNuT, thanks for the link, missed that one, but when I try to use that it show me the second cut only, after first break mark. I need H4 tag to be the cut mark and the content inside H4 tag would be the active link to that next content. Something like pagination, but instead pagination I would have titles wrapped in H4 tag that would point me to those text cuts.
  17. Soma, I wrote it wrong, article URL's would be like you mentioned: /articles/lorem-ipsum/page2 I need to generate additional URL indexes so if you or someone can help me out adopting the class from the link I've posted above, it would be great. I wouldn't use repeaters if not necessary...
  18. I have a situation where I need to cut long content into multiple pages. The best option is to use URL segments, but how can I accomplish this: If editor of the article inserts H4 tag into body field through TinyMCE, the content after that tag would be automatically cut off and parsed to the URL segment generating title of that other page (URL segment 1) with that H4 tag. If editor puts another H4 tag into TinyMCE, content would expand to URL segment 2 and so on. For example: URL: /articles/lorem-ipsum/ Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. Editor inserts first H4 tag into content: Lorem Ipsum is simply dummy text of the printing and typesetting industry. This is H4 tag Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. And this is what happens: URL: /articles/lorem-ipsum/ Lorem Ipsum is simply dummy text of the printing and typesetting industry. URL: / articles/lorem-ipsum-2 Title (title is generated by that H4 tag) Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. And so on... Something like this...
  19. Sort settings are defined within template. I've installed fresh copy of PW on VPS server (running Linux/MySQL) and sort settings weren't applied. Then I've made sql dump, copied same installation to my home dev machine (using IIS/MySQL, same as at work) and sort settings worked. Then I've installed MySQL 5.1.63 on my dev machine to test it out and it also worked. There seems to be bug somewhere with sortfields... so I think it's the same situation that you have, only I don't understand why is it working with IIS and MySQL...strange.
  20. I haven't thought of that, will try that Ryan! Categories and subcategories are static and they all have relations like they have been set up ih the back end.
  21. I have a problem with sorting in templates. On my local machine I have IIS with MySQL 5.5.8 and everything works fine (sorting children in admin based on global fields and custom fields (name, title, ...). On my VPS that has MySQL 5.0.95 installed sorting doesn't work at all. I've tried it on another dedicated server that has MySQL 5.1.63 installed and it doesn't work either. Could it be the problem with that version of MySQL's? Sorting in template code (PHP) works fine. Also, I can rearrange children (although sort has been set) and no warning window pops out. On my local machine I get warning that I can't manually rearrange children bacause sorting was set with some particular field. I read this topic and there was sort problem with MySQL 5.0.51. I've installed new PW install on my VPS to confirm that it doesn't have anything to do with project I'm working on, and the sort problem persists.
  22. That would solve my problem and would be easier (having articles under one page and reference them through the Page categories field), but can it be accomplished by keeping the structure above?
  23. I'm trying to fetch articles based on category selection. I have the following setup: Category Category 1 Subcategory 1 Article 1 Article 2 Article 3 [*]Subcategory 2 Article 1 Article 2 Article 3 [*]Subcategory 3 Article 1 Article 2 Article 3 [*]Subcategory 4 Article 1 Article 2 Article 3 [*]Subcategory 5 Article 1 Article 2 Article 3 [*]Category 2 Subcategory 1 Article 1 Article 2 Article 3 [*]Subcategory 2 Article 1 Article 2 Article 3 [*]Subcategory 3 Article 1 Article 2 Article 3 [*]Subcategory 4 Article 1 Article 2 Article 3 [*]Subcategory 5 Article 1 Article 2 Article 3 I've made "categories" field with a type of: "Page" where I select Category as parent for categories. All articles have the same template - "article". I want to add categories to Page reference field assigned to "article" template so I can pull them on the front end. Let's say I want to add articles on front end from Category 1 - Subcategory 1, Category 2 - Subcategory 1, Category 2 - Subcategory 3 that use the same template - article and have same categories set in the categories Page reference field.
×
×
  • Create New...