Leaderboard
Popular Content
Showing content with the highest reputation on 02/19/2013 in all areas
-
3 points
-
Ok I think I know what you mean. Current $page isn't available in your function when called from a page you render with $object->render() right? Since it's hard coded into function with wire("page") you could also pass it with an argument. My last 4 function examples showed this. Without reading the whole book here... This has come up once or twice in the forums. Ryan showed an easy solution but can't remember exactly as there's some different cases and ways. Ok here it goes. From the you load the widget pages you di something like this to save the current page temporarely: $item = $pages->get("/item/"); // some widget page $item->calledfrom = $page; // save current page from where widget is rendered echo $item->render(); Now in the template of the item you simply can use calledfrom and give it to the function echo "called from page: ". $page->calledfrom->title; // show the title of the page where this is rendered. echo $page->title; echo $page->body; // call function with current page argument myFunction($page->calledfrom); Guys I'm getting slow... but three times holds longer.2 points
-
Ok, i did it I put a repeater inside itself just to see what would happen, and the result is not pretty. As soon as you create a page with it, it creates a big number of repeater pages and breaks the system. It would be better if PW would just disallow this.1 point
-
InputfieldMailChimpCampaign This is the very early state of a basic Inputfield & Fieldtype for creating & updating a MailChimp campaign. What it does: on create Creates a campaign on MailChimp Sends the url of the page (where the inputfield lives) to MailChimp and uses that page as campaign. Attache a mailing list to your campaign. Add several settings. Upon save ( check update on MailChimp checkbox ), let MailChimp pull a text-version of the campaign-page and store it on MailChimp. on update Update all previously set settings except the campaign ID Create a new text vesion of the campaign What you should know: Your page must be reachable from the internet. And your page must be in a published state. It's just pushing values from ProcessWire to MailChimp. Settings changed in MailChimp self will get overwritten upon page save. It's only handling campaign create & update. Send functions are not included. You can download it on github. --- note: It's in development state.1 point
-
I'm quite new to PW, what a great platform, everything makes so much sense! First night I couldn't sleep, was so excited about it Small question here: I have a couple of templates, they all include the 'title' field, because it is set to 'Global' (and system as well) and it makes of course sense to have to everywhere. But in one template I'd like to hide it, which can be done with the visibility setting. But then it is of course empty! Is there a solution to populate this field with two other fields, for example having a person template, field and contents first name "John" last name "Doe" academic degree "Dr." and the title of a combination of those three values set to "Dr. John Doe"?1 point
-
1 point
-
Maybe a module that writes this. I've had once activated the HelloWorldExample module and after a hour I figured out, that it writes a "Hello World" at the end of every page.1 point
-
Hi Onjegolders Yes, it is one of the things that has frustrated me enormously, particularly in recent years. I know search engine optimisation is important, but so are returning visitors. So much emphasis is now put on hitting keywords that sites are often uncomfortable to read, products described badly, and there is a complete lack of one-to-one communication. Websites, like radio, are only talking to one visitor at a time; there is not a crowd of people looking at the website, there is lots of one persons. Well, with any luck, you will get a client that says, "I want my site to sound like me," and are happy to pay for that. Then you can give me a call with pleasure. Good luck mate.1 point
-
@sevarf2: You hit the same bug I did a while back . See here: https://github.com/ryancramerdesign/ProcessWire/issues/147 So you can either: 1) use trackChange() like WillyC showed you or 2) force the save of (only) the imagefield with $m->save('imageverify') or 3) update to a more recent version of PW where this bug has been fixed (dev branch) and use plain old $m->save() like you were trying to in the first place.1 point
-
@ryan: I tried this out a little (by adding support for this to the SelectorTest ) and it seems to be working, well, almost perfectly. When trying to get 'modified' property, the 'created' timestamp is returned instead. They do differ in the database though. Another thing (this could be considered a feature even): when adding a new file, both properties get their values set to the time of the upload, not the time the page is saved. This doesn't really matter, but if you add a new file and write a description for it as well before saving the page, 'modified' property will be set according to the page save leaving the properties with different values although the user might consider having done one single transaction.1 point
-
Just comitted v 1.0.1 to Github: - Added checkboxes for include=hidden, include=all so you no longer need to write those in the selector - Made AdminDataTable sortable - Each status is now in its own column - this means you can also sort the results by status - Added message: number of pages found I initially disabled the sorting on the table because there was an issue with the checkbox in the first <th> which can be used to toggle all the checkboxes. The solution is to disable the sorting of a specific column with jqueryTableSorter: $.tablesorter.defaults.headers = {0:{sorter:false}}; ...where 0 = first column, 1 = second and so on, should anyone else ever need this.1 point
-
Unfortunately, I am not a graphic designer. However, if you need a serious copywriter and composer with 35 years in advertising...... (and you don't mind a remote worker)1 point
-
1 point
-
Local Job Centre (if our experience is anything to go by) will get you loads of graphic designer applicants. The company I work for (which does mainly print advertising) needed a GD about 9 months ago and we had dozens of applicants of varying skill levels and with experience in a range of fields. The lad we were replacing went on to do web stuff elsewhere and I know from shortlisting/interviewing the applicants that some of them had at least an interest in web design.1 point
-
No problem and welcome to PW forum You can try dev version, because will be stable soon and any testing are welcome.1 point
-
Well, now you have it installed - go have fun with it!1 point
-
This is great Martijn! Interesting approach with using a fieldtype I never really thought of. As you've seen the other thread, I'm working also on a MailChimp integration myself. It was for a project of a friend who needed an newsletter and I first started creating some self brewn but abandoned it because handling of all the nice features and sending batch mails would get to tedious if not impossible at all. It's at best would have been only for really small amount of mailings. However I then decided to give MailChimp a try and changed the whole module to implement MC. It consists of a bunch of admin pages that gets setup when installing, where you can manage your campaigns and lists and select a page or enter a url for the newsletter to be used and the list. Then do test sends or final send. After sending you can see the stats of the campaign. So far it's working great but I planned to integrate, groups and segments too for creating campaigns which allows for using lists more flexible as you can't create new lists through API. My friend is using it now for a simple newsletter but I'm still working and reworking a lot of how it works and implement more features. I hope to share my module, but I think it's still not ready yet and takes some more time. I think why not have two different modules for allowing MailChimp in PW? It's great to see and have two different approaches and further we could share thoughts and experiences. I'm not sure we could stick together and go for a bigger project? Or what do you think?1 point
-
1 point
-
I just discovered the Template of selectable page(s) option in the Selectable Pages section, which allows me to use a different template for the categories within /work/. Brilliant!1 point
-
1 point
-
1 point