Jump to content

Citytech Tester

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by Citytech Tester

  1. Hello all, Is there any way in processwire so that i can get the wesite url dynamically in template page.? Thanks
  2. Hello Martijn Geerts, I just change the text format option in details section of the field that i added and in template i wrote <?php foreach($page->banners as $image) { $thumbnail = $image->size(350,200); echo "<a href='{$image->url}' title='{$thumbnail->description}'><img src='{$thumbnail->url}' alt='{$thumbnail->description}' ></a>"; } ?> it started working. Thanks
  3. Hello iNoize Thanks for your help. You code worked for me. Thanks a lot.
  4. Hello all I am new to processWire. I want a simple contact form in my website. Please tell how can i add contact form in my website. Thanks
  5. Hello Martijn Geerts, I am very new to this forum. Just joined yesterday. If it is wrong to ask another question under a previous topic then i extremely sorry. I will post that question again as a new topic. Thanks.
  6. Hello LostKobrakai, Thanks for your reply. The problem has been sorted out. Thanks for your help. Hello LostKobrakai, I have another question. Will you please tell me how can i add a contact from in my website?
  7. Hello LostKobrakai, Thanks for your reply. I have done <?php if(count($homepage->banners)) { $image = $homepage->banners->getRandom(); $thumb = $image->size(606, 372); echo "<p><img src='$thumb->url' alt='$thumb->description' /></p>"; } ?> in template. Still i can't view any images under banner field.
  8. Hello Macrura, I have added a field named banners which is exactly like images field which is already added for home page and basic page. When i am editing the home page in admin section i can view the banners field and can upload images for this field just like the images field. But in front end processwire_root\site\templates\_main.php file when i am writing <?php if(count($homepage->banners)) { $image = $homepage->banners->getRandom(); $thumb = $image->size(606, 372); echo "<p><img src='$thumb->url' alt='$thumb->description' /></p>"; } ?> this is showing nothing. Please help.
  9. Hello Macrura Thanks for your reply. Yes my fied is multiple image field. A inamge field was already added for my home page. Anf in front end when i am doing <?php print_r($homepage->images);?>it is working fine. but for my custom field it is not working. In processwire_blog\wire\modules\AdminTheme\AdminThemeDefault\default.php there is if($page->body) echo $page->body; in line number 93 which is ftching all the contents added for a perticular page but in front end echo $page->body not displaying all the contents. It is displaying all except my custom fields Please tell me how can i get that field value.
  10. Hello all I am new to processWire. I have created a field "banner" from setup>Fields>Add New and assigned that for home page. When addin content for home page from Pages>home>edit i have uploaded two images for the field banner. But none of the images are displaying in front end. Even <?php print_r($page->banner);?> is showing nothing in processwire_root\site\templates\_main.php file. I am very new to processwire. Please guide me how can i display my newlly added field values in front end.
×
×
  • Create New...