justnew77
Members-
Posts
24 -
Joined
-
Last visited
Everything posted by justnew77
-
Get alls images from a field in a other page
justnew77 replied to justnew77's topic in General Support
$image = $pages->get("/leistungen/dekoration/")->imageK1->url; foreach($images as $image) { echo $image->url; } This do not work too. So I need a little help please. -
Get alls images from a field in a other page
justnew77 replied to justnew77's topic in General Support
Yeah, I saw this doc. But it says nothing about accessing fields in other pages. From this doc I figured out the code above. But it do not work. -
Thank you all for your help
-
Hi there, I want get all images from an other page. I tryed this: $image = $pages->get("/leistungen/dekoration/")->imageK1->url; foreach($image as $image) { // Only a simple echo to test if something happend: echo $image; } But nothing happends?!
-
echo $images = $page->images->slice(0,3); get me an Error: Call to a member function slice() on a non-object
-
Both thing do not work: $i=0; foreach($page->imageK1 as $imageK1){ if($i==4) break; echo "<a class='fancybox' rel='gallery1' href='$imageK1->url'>"; echo "<img src='$imageK1->url' height='150'></a>"; } the code above put out ALL images. and echo $image = $page->imageK1->first(2); echo $image = $page->imageK1->first(3); echo $image = $page->imageK1->first(4); echo $image = $page->imageK1->first(5); put out only the filename of the FIRST image, 4 times!
-
Hi, I got an image field named: imageK1. How can I call e.g. the second image? What I want do do: I want to list the first 4 images of the field. Cheers
-
Hi there, I got a new field (an image field, only 1 images allowed) The problem now is that the images can not display becauese the field contains only the filename and NOT the path. What can I do to recieve the full path and name?
-
Yes, Martijn, that works. Thank you for your great support.
-
Fieldname 1 is "folgeTitel", Fieldname 2 is "folgeYT" The pagename is "video-container" (i adapted it in the code trys) It is located in: Home |_Site 1 |_Site 2 |_video-container The "data-pages" are childs from video-container
-
Hm, sorry it retrieves nothing. Nothing appears!
-
Sorry but i stuck a litte bit with that. Can you please write the complete code to retrieve the data?
-
Hm...that seems not to work?! Nothing happend!
-
Hi, my site have a page that I use as an container. Name CONTAINER. CONATINER has children. Each of them has fields in it. What I want ist this: On an other page I want to list all the content of the fields from CONTAINER children. How can I do that? In MODx there was a plungin called getResources to do that. How it is here?
-
Hi folks, how can I do a simple contact form with PW? I need Name, Adress, Mail and a checkbox I find a lot of stuff here in the forum but nothin what I cant understand, because nothing wehre show from scratch. So here are the main questions: Where put I the HTML form code? Inside a new template? Or inside the content field? And how can I do the form validation? Ist there a modul ready to go for PW? (not the formBuilder because ist costs money) If not, where put I the PHP code for validation? I just camo from MODx, and I wonder how dificult it is to build a simple form in PW. It might be something to do that I am new to PW, but for now I do not understand how it works to build a form inside PW with validation and so on. What I need is a simple step to step tutorial for beginners. Is there anything like that?
-
Ok, Thank you very much
-
Hello, I follow the instructions on this site how to deal with Image fields: I generateed an field with the Name "themeimage" as type IMAGE, I put it to the template, and I put this code to the template file: if($page->themeimage) echo "<img src='{$page->themeimage->url}'>"; I load up an Image inside the page but the image do not apear?! This is what it renders out: <img src='/dev/site/assets/files/1/'>
-
Hm, ok thanks for the Information. I will just Play around with that.
-
Ok, i got it: This goes with the Parameter 'outer_tpl' => '<ul id="menu">||</ul>',
-
Ok now it shows the "root page" correctly. But he did not add the class to the LI I do it so: $treeMenu = $modules->get("MarkupSimpleNavigation"); $options = array( 'parent_class' => 'menu', 'current_class' => 'active', 'show_root' => true ); echo $treeMenu->render($options); But it renders out like so: <ul> <li><a href="/dev/">Home</a></li> ... Without a class Parameter for the parents. (Current class do work)
-
Hi, i want to render out a navigation menu! I got 3 pages: Start/Home, About and Contact. I installed the MarkupSimpleNavigation modul and tryed this: <?php $treeMenu = $modules->get("MarkupSimpleNavigation"); echo $treeMenu->render(); ?> But it lists only 2 pages. The home/start page ist not in the list. Why? BTW: How can I say the Module what css class he should use
-
Ok thanks. I renamed my template-file to home.php and this works fine.
-
Thank you all for the links. I think they could help me. I read the "getting started" tutorial but I still can't figure out what I wrote in my first psoting: I got the start site next to the Icon with the Little house. When i create a new page it is UNDER the start site. The start site contains the demo site an demo template with ist not changeable. So how can I Change this?
-
Hi, I am justnew77 and just new to processwire. I came from MODx so I am actualy not new to CMS. I can not join my template to the default startsite. How do I di that? Or how do I create a NEW startsite with my own template? Greetings from Germany!