-
Posts
99 -
Joined
-
Last visited
Everything posted by drilonb
-
yes i change it to $prishtina = $pages->get("/libri/garazha/prishtina/")->child("sort=-created"); its work but is calling just one, i like to make for example: if a go at page /libri/garazha/prishtina/ to show all pages in Prishtina ( Test 1,Test 2,Test 3,etc...) i have just one template with name prishtina, this is a page list in admin ---------------------------------- Home- Libri- ------Garazhat ------------------Prishtina ----------------------------- Test 1 ----------------------------- Test 2 ----------------------------- Test 3 ----------------------------- Test 4 ----------------------------- Test 5
-
I am trying to call pages like this <?php $prishtina = $pages->get("/libri/garazha/prishtina/")->find("sort=-created, limit=0"); if(count($prishtina->fotoballina)) { $image = $prishtina->fotoballina->first(); $thumb = $image->size(50, 50); echo " <table width='100%' border='0' cellspacing='2' cellpadding='1' class='ListTable'> <tr> <td width=60 height=60 align='center'><a href='{$prishtina->url}'><img id='photo' src='{$thumb->url}' alt='{$thumb->description}' width='{$thumb->width}' height='{$thumb->height}' /></a> {$prishtina->date}</td> <td> KTA:<a href='{$prishtina->url}'>{$prishtina->title}</a><p> Adresa: {$prishtina->adresa}<p> Telefoni:{$prishtina->mobile}</td> </tr> </table>"; }; ?> i dont show any error but nothing show in page, fields are ( fotoballina , title , adresa , mobile ) and if i use like this work perfect <?php $aktivizo = $page->find("template=klienti, sort=-created, peja=1, limit=2"); foreach ($aktivizo as $portfolio_item) { $image = $portfolio_item->fotoballina->first(); $thumb = $image->size(50, 50); echo " <table width='100%' border='0' cellspacing='2' cellpadding='1' class='ListTable'> <tr> <td width=60 height=60 align='center'><a href='{$portfolio_item->url}'><img id='photo' src='{$thumb->url}' alt='{$thumb->description}' width='{$thumb->width}' height='{$thumb->height}' /></a> {$portfolio_item->date}</td> <td> KTA:<a href='{$portfolio_item->url}'>{$portfolio_item->title}</a><p> Adresa: {$portfolio_item->adresa}</td> </tr> </table>"; }; ?>
-
This web site is lanced today 80 % works done just we are fixing some CSS in template and to start working with it. Thanks to processwire.
-
Thanks RYAN and adamkiss i found this its coming from WP i scan today all my server and found to many incorrect codes in php files all incoming from wp folder i mean where is a wordpress installed folder i delete all of them i dont know why wp but i delete it now everything is working fine i correct server and clean it and from now wp is just a past of my memory, thanks for supporting and for everything.
-
i need to know for this bug in file index.php i found this code at line 189 CODE <img heigth="1" width="1" border="0" src="http://[removed]/t.php?id=15804192"> this code stop working the index and site looks like to have error 500 when i remove this code everything is working , or maybe is any bug in my VPS, because someone put it in index.php ? i move now the test page to other host at iweb server to look if someone can du it again, thanks.
-
@jbroussia yes i know first i need to finish all the site and in the end i will look to fix any bug in site like spam and others but first i am trying to lesson process wire function and start working with it. thanks for replay.
-
Thnaks RYAN i fix it now its working great just need some little styling i use this code and work great $matches = $pages->find("title|body~=$q");
-
do you have any idea ore help to creat page for search and form only for keywords in site ?
-
I am in the end of work with this CMS i am so happy i really i will use this CMS for my works. http://www.sherbimeonline.com/kta/ Thanks for all. Thanks RYAN
-
Great i am so stupid with code i type wrong. <?php $p = $pages->get("template=news, terejat=1, limit=3, sort=-date"); echo "<p>"; echo "<a href='{$p->url}'>{$p->title}</a>"; if(count($p->fotka)) { $img = $p->fotka->first(); $thumb = $img->size(200, 200); echo "<a href='{$p->url}'><img src='{$thumb->url}' alt='{$thumb->description}' /> </a>"; } echo "</p>"; ?> the problem is showing just one post not others in template news is this for post per template " limit=3, "
-
And one problem when i add thumb or body description, <?php $p = $pages->get("template=news, terejat=1, limit=3, sort=-date"); echo "<p>"; echo "<a href='{$p->url}'>{$p->title}</a>"; if(count($p->fotka)) { $img = $p->fotka->first(); $thumb = $image->size(200, 200); echo "<a href='{$p->url}'><img src='{$thumb->url}' alt='{$thumb->description}' /> </a>"; } echo "</p>"; ?> show error on page line where is $thumb = $image->size(200, 200);
-
Great workkkkkk Thankss
-
Hello i like to know how to make something like featured post or most view post field for this i use popularpost and template name is news, i like to know how to use it in template, i have try to use like this form and to set and first image on it, its posible ? <ul> <?php $features = $pages->find("template=press_release, featured=1, limit=3, sort=-date"); foreach($features as $feature) { echo "<li>" . "<h3><a href='{$feature->url}'>{$feature->title}</a></h3>" . "<span class='date'>{$feature->date}</span>" . "<p>{$feature->summary}</p>" . "</li>"; } ?></ul>
-
Thanks RYAN i am just waiting for mail and to try it
-
Yes i am just finishing my work , i am trying to make one gallery maybe i will finish it. and images are opening like charm with popup jquery , i am confuse how to make a page like this > http://processwire.com/skyscrapers/cities/atlanta/ i really love it. BR,
-
Thanks a lot i understand now functions and work perfect now the slider is working great i will start using now this for my new sites, you can check the slider http://sherbimeonline.com/webi/ Thanks RYAN...
-
Hello i am a new with this CMS i like to know if its possible to call fields like: I create one template Slides.php and add fields Image and text , i like to call fields of this template to other template name like in home.php slider work in slider page but not in other pages , example of your template <?php // Grab a random image from the homepage and display it. // Note that $homepage was loaded above where we generated the top navigation. if(count($homepage->images)) { $image = $homepage->images->getRandom(); $thumb = $image->size(232, 176); echo "<a href='{$image->url}'><img id='photo' src='{$thumb->url}' alt='{$thumb->description}' width='{$thumb->width}' height='{$thumb->height}' /></a>"; } ?> how to creat like this to call other pages not from homepage . i try this but works only in sliderat template <?php if(count($page->sliderat->slider1)) { $image = $page->sliderat->slider1->getRandom(); $thumb = $image->size(400, 200); echo "<img id='photo' src='{$thumb->url}' alt='{$thumb->description}' width='{$thumb->width}' height='{$thumb->height}' /></a>"; } ?> Ame sorry for my language.