Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by lsag

  1. Hello. Could someone tell me what i have to put in this template file? is it like a normal processwire template? checking the default template, i see $page->body shouldn't this get me the entire content of the <body> tag? instead i get, as the only content, the page's url. Thanks for the patience to this noob
  2. Hello. i'm trying to install this module, but i have an error: says it need the module "WirePDF". In the documentation, says: how do i create this wrapping, and make the module work? thanks
  3. Thanks for all the input. For now, the labels will be a great help
  4. now we speak about this, if i need to repeat the field in the same page (sender_address and reciever_address), how do i change its name, so i can access it from the template? Maybe with a repeater, but i'll have to use the indexed array, right?
  5. ahh, of course. I never searched the use of that option. Now i know. Many thanks!!
  6. Hello. I'd like to clarify something that's in the back of my mind for a while. If i have 10 fields with the same parameters, except only the labels, for example scatered in different templates, i must have 10 different copies of those unique fields?
  7. im also implementing pages protected only by a a password. The code here works, but like this the password isn't using any encryption. I tried to define the field as a password, and like this make it encrypted. But i dont know how to compare with the user input i tried this, where password_salt is a password field for this page: // this works: i got the input from the form password field $pw2= $input->pass; echo "<br />bd: " . $pw2; // here i got the: Error: Exception: Method Password::match does not exist or is not callable in this context $pw3= $page->password_salt->matc
  8. So the resolution was: create a new barebones page, and line by line add the code again. I have no idea of what was the cause, but its working
  9. i have tagged this with carrousel and slideshow, because that was the initial problem i had. But while debugging, i'v seen that even the simplest jQuery is affected. And then forgot to remove the tags
  10. Hello. i have a very weird error in jQuery. this is the message in chrome's console: GET http://localhost/clientes/promundi/site/v4_pw/site/en/contact/images/ui-bg_glass_100_f6f6f6_1x400.png 404 (Page Not Found) jquery-1.11.1.min.js:2 GET http://localhost/clientes/promundi/site/v4_pw/site/en/contact/images/ui-bg_gloss-wave_35_f6a828_500x100.png 404 (Page Not Found) jquery-1.11.1.min.js:2 GET http://localhost/clientes/promundi/site/v4_pw/site/en/contact/images/ui-bg_highlight-soft_100_eeeeee_1x100.png 404 (Page Not Found) i can see jQuery is being loaded properly, because this works,
  11. thanks for the answer, and sorry for being so late in mine your solution is very clear, and is already implemented and working. thanks!
  12. well, enabling one field at a time may work. and i'll try your procedure tomorrow, if i get more errors. thanks
  13. now i tried upoloading with ftp the raw files, without using zip files (i use 7zip, thought it was the safest...) and i detect the modules, but have to install all one at a time. i then try to reimport the data base with phpmyadmin, and verifyed the pages table is there, apparently with the same values. i still dont have the same pages that i created in localhost. tried also the processMigrator tool. i got the error: "Unable to install module 'LanguageSupport': SQLSTATE[23000]: Integrity constraint violation" as mentioned here: https://processwire.com/talk/topic/7207-can%C2%B4t-install-lan
  14. i had the same problem: after install, i have a message: Fieldtype 'FieldtypeCropImage' does not exist Fieldtype 'FieldtypeMapMarker' does not exist i tried to export all the files to a .zip, upload, unzip. checked permissions for site/assets/cache (its empty), site/assets/files the file .htaccess is there, with the same content as in localhost the database access infois are exacty the same, including database name, user and password then exported / imported the batabase with phpmyadmin, with no errors but the files for the modules are there, in site/modules, just like in my localhost. th
  15. Hello. following this thread, i'd like to create a laguage switcher, that instead of showing the language titles (that i can do already), to show the respective image flag. what i did so far: created in the languages page template, a flag image field in my template, iv' put this in the template <?php $currentLanguage = $user -> language; // remember language foreach ($languages as $language) { echo "teste ". $language -> id . " "; $user -> language = $language; if ($language -> id == $currentLanguage -> id) { continu
  16. i created a page with some of those global settings, such as: a collection of images for the banner's slideshow, the sit'e logo, its name, the footer, etc. and to make it more dynamic, i merge it with the title of the page, like so: in the beginning of the file, before any html: $pg_settings = $pages -> get('name=settings'); on the title: <title><?=$pg_settings->title ." / ". $page -> title; ?></title> and (for completion) on the footer: <footer><?=$pg_settings->rodape?></footer>
  17. i also dont get why both print_r's show the same result $pg_settings = $pages->get('name=settings') print_r($pg_settings); $imgs = $pg_settings->get("banners_slideshow"); print_r($imgs[0]->get("url"));
  18. Hello ppl I'm trying to create an image banner to show in all pages of the site, and for this i created a page to hold multiple images in a field (latter im gonna deal with animating them). The page is published, So this is the tree of values i got: i can address the page with $pg_settings = $pages->get('name=settings'); it seem to be correct because print_r gets me a biiiig array if info now the problem is getting the array of images, with their respective url's. I tried: $pg_settings = $pages->get('name=settings'); // echo "<br />pg_settings: " . print_r($pg_settin
  19. yes, worked perfectly. Thanks!!!
  20. Hello Im doing a multilanguage site, in Portuguese and English. But both languages have the same url. for example: in the administration of content of any page, the url editing for the version of the page in each language, show the same prefix for all of them. I tries to create a new language, and also shows there, with the same prefix I do have this plugins installed and active: ProcessWire multi-language support. Languages Support - Fields 1.0.0 Languages Support - Page Names 0.0.9 Languages Support - Tabs And the prefixes are correctly specified: I dont know how i messed
  21. gee, this is sooo cool!!! it's such a pain to discover the right variables for the templates, in other cms's!
  • Create New...