-
Posts
6,798 -
Joined
-
Last visited
-
Days Won
158
Everything posted by Soma
-
I used to post a link on my website to give my new client sites a poke. Work well. Or even in this forum.
-
just uped another pull request... I think google doesn't parse the website if it has a sitemap.xml. Or has this changed? I found myself fixing others website by actually removing the sitemap form google. Google is so fast nowadays it doesn't matter that much, as it won't be in index before index update. I could be wrong as things change all the time, but thats my personal experience and from readup. Also if you add a sitemap page to your site will help if you really worry about it. As with most seo things you have to take everything with a grain of salt at the end. It's maybe ok if google doesn't come to your new site if it's new, but tests have shown even only 1 link to your site and google will parse it in 1 day if you have a nice structure.
-
Pete, thanks, but I already pulled another request, forgot to up the cache time. Also to fully work it would also have to add the "language_published" check to see if language version of the page is really published. Will try to add that later. Also wanted to add that I never use sitemaps for google and never will again (used to try long time ago, but it doesn't really help at all if you build the site carefully. It just eating time doing it and making sure everthing works still). It's not as easy as it first seems and can even be contra productive if not done carefully. Problem with this module as it is now, it will not find and list pages that may are added through urlSegments and I don't see a way to do it easy. Also it doesn't have weighting etc.
-
Hello guys We reached some over 100 modules on http://modules.processwire.com It was like 5 when I joined 1.5 yeah ago? Keep it up but remember quality > quantity I'm a PW addict, when I've not created a module for so long I get nervous.
-
Pete the LLU module doesn't have separate trees, it uses a gateways page for each language in the root like "/de/" "/en/" with url segments to then get the page and switch user language. The site structure is still all the same as without, you just use text language fields. The parsing of the url happend automaticly through these gateway pages and it hooks into Page::path to change the url of the pages system wide. So if you do a echo $page->url you'll get the language url in the language you're currently in. Like /en/about-us/, /de/ueber-uns/. Have anyone tried yet if it doesn't already work?
-
Hello Jens The problem seems you don't have the "language_published" page field added to your templates (as in manual). That's why it does the has() error. echo $page->language_published->has($pages->get("/en/")) ? "<li><a$st href='{$page->url}'>EN</a></li>" : ''; This field is used to be able to "enable" a language or disable it. Since whe have only one page with multiple languages. If you don't need this you could leave it out. echo "<li><a$st href='{$page->url}'>EN</a></li>"';
-
Joss, that's true actually, however in my book this is a big plus, because you start thinking again about things you would never have before! Think about structure carefully and where it really matters at the end. You just need some time to find your way through it and what drawbacks there could be. After some projects this becomes second nature really. It's been always like this, in that you first need to eat of everything to decide which is better.
-
how to use InputfieldSelectMultiple (or InputfieldSelect) ?
Soma replied to mindplay.dk's topic in General Support
Another thing is with this approach you get relations and not some hard coded values, so you can change things later without worry. You can use different inputfields for the page field, whatever suits better and you could even sort them. Also if you add Multilanguage to the mix you still get everything out of it even translated without any effort. You can use such tag pages to populate a select on the frontend etc. And it's always flexible on different levels. That's some of what makes PW really enjoyable for me. -
Ups, thanks diogo. I think it's one of those afterwards adding stuff errors. Strange nobody noticed it earlier I corrected it. I think you could use the markup inputfield (InputfieldMarkup) to add an error inside the form, maybe right before or after the fields. IF you don't add a string value to the field it won't show anything. But if you give it an error it should display it. Or use custom code to validate and add it before the form like diogo suggested. I haven't tried to, but I think it's also possible to add the error to the form itself. $form->error("Hey somethings wrong");
-
Creating categories using checkboxes isn't recommended. Create a nested page structure that represent you categories. Then use a page field to select from them (multiple if needed) Now the category tree can be used to output a nested navigation for example. In the category template you would enable urlSegments and you can use that simply to list pages that are linked to this category through page field. The template code for the category pages would look like this: if($input->urlSegment1){ // if url segment is a product we get the product to render details page if($pages->get("name=$input->urlSegment1")->template == "product"){ $prod = $pages->get("name=$input->urlSegment1"); } else { // else we get the normal page } } else { // in case we are on a "normal" category page, do different stuff $cat = $page; } Then proceed outputing stuff as usual. And the navigation using my MarkupSimpleNavigation module would be extremly simple. $root = $page->rootParent(); // the root page of the categories $navcol = $nav->render( array('collapsed' => true), null, $root); This will give you urls like /categories/cat1/cat1c/ where you can list all product that belong to cat1c. And have product links like: /categories/cat1/cat1c/product1 Which can then constructed like this: <a href='$page->url$prod->name/'>$prod->title</a> Hope that helps and is understandable. Not finished but working on a shop that uses this approach here: http://sultan.urlich.ch/shop/ Same is done with ingredients for products. A page of a incredient then lists all products that have the ingredient like here: http://sultan.urlich.ch/zutaten/gewuerze/
-
Why not AfterShaveActions ? Lol didnt read apeisas end. Just after
-
Woot diogo this is already a snippet forum
-
Apeisa zhats what meant copy paste tabs work. Finally
-
yeah apeisa and even with tabs (from paste)
-
I haf to not only clear cache but also clear cookies miamm Its cke ediotr not tiny wanted to add
-
Nik, don't worry It sounds very familar to myself, ... before release some refactoring (ah lets change those var names before release lol) and best of is you recognize it immediately after releasing.
-
how to use InputfieldSelectMultiple (or InputfieldSelect) ?
Soma replied to mindplay.dk's topic in General Support
As the inline comment states and what willy and apeisa said. Or have a look at this http://processwire.com/talk/topic/201-fieldtype-select-aka-drop-down/ Speaking of it, this module isn't listed on modules.processwire.com. Hani can you might add it? -
My biggest fail was I created a new universe and after seven day of hard work I was about to finish but unforunately I couldnt save it because it was too darn big it just disappeared in a big black hole...
-
I feel you. My biggest fail was to try find why the variable isnt populated at all.. Just to find I have added $var = ''; right before the check (mixed var name).
-
how to use InputfieldSelectMultiple (or InputfieldSelect) ?
Soma replied to mindplay.dk's topic in General Support
SelectMultiple is a input for page fields. -
Running a Daily Newspaper website with Process Wire.
Soma replied to Crssp's topic in Getting Started
XML feeds would be a valid solution, without knowing the details of what the content is. But Ryan is doing it aswell in some of his sites to share content between installations. Other solutions would be to import them from text or html files. I'm doing a reports website of a company where we get static html files and I have a script to import them in 1 click. It's a matter of reading and parsing the files, create a new page, put them in the textfield and save. $content = file_get_contents($url_to_file); $content = str_get_html($content); // using http://simplehtmldom.sourceforge.net/manual.htm $p = new Page("basic-page"); $p->parent = "/news/"; $p->title = $content->find("h1",0)->plaintext; $p->body = $content->find("#main",0)->innertext; $p->save(); -
Everybody knows or seen it I thought, if you're into data viz. I think you know it already but there's also some others http://raphaeljs.com/ http://g.raphaeljs.com/ http://www.highcharts.com/ http://www.kendoui.com/dataviz.aspx
-
I saw that too. ROFL no way
-
public function init() { $this->addHookAfter("ProcessPageList::execute",$this, "addScripts"); } 1 2 3 test
-
Hmm, ok after another cache clearing, the editor is back again.