Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 26 matches
Smarty Forum Index
Author Message
  Topic: Problem crawling my site.
anything7pob

Replies: 5
Views: 5324

PostForum: General   Posted: Fri Jul 14, 2017 7:34 pm   Subject: Problem crawling my site.
All of the links work on the site and I have made a manual sitemap so that google knows that they are there but I am still worried that I have made a mistake somewhere.

Is it unusual for the sitema ...
  Topic: Problem crawling my site.
anything7pob

Replies: 5
Views: 5324

PostForum: General   Posted: Thu Jul 13, 2017 10:43 pm   Subject: Problem crawling my site.
I`m not sure if it is or not.

The .html line at the end was a sort of afterthought but seems worth looking into now.
  Topic: Problem crawling my site.
anything7pob

Replies: 5
Views: 5324

PostForum: General   Posted: Thu Jul 13, 2017 5:49 pm   Subject: Problem crawling my site.
Hey guys,

I have converted my site to smarty but I am having a problem.

My site pages are dynamic and googlebot doesn`t seem to find them.

The auto generate sitemap sites cannot see them eit ...
  Topic: Google amp project
anything7pob

Replies: 8
Views: 9736

PostForum: General   Posted: Tue Apr 25, 2017 9:46 pm   Subject: Google amp project
Hi and thank you, ill work through your tips, sure one will fix it.

I`m pretty new to messing around with AMP but I believe that dump is non negotiable and needs to be in the header of the page.
...
  Topic: Google amp project
anything7pob

Replies: 8
Views: 9736

PostForum: General   Posted: Tue Apr 25, 2017 7:51 pm   Subject: Google amp project
I am getting a 500 error when I add

<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,e ...
  Topic: Setting carousel href with smarty.
anything7pob

Replies: 17
Views: 16464

PostForum: General   Posted: Sat Apr 01, 2017 1:04 am   Subject: Setting carousel href with smarty.
Woohoo, fixed it!

Not sure what the problem was, more my understanding of arrays and how to set and arrange them both in PHP and smarty.

Reliable feedback was the answer.

Thanks for your help ...
  Topic: Setting carousel href with smarty.
anything7pob

Replies: 17
Views: 16464

PostForum: General   Posted: Fri Mar 31, 2017 10:12 pm   Subject: Setting carousel href with smarty.
Ok, just to clarify,
Are you saying I need to check the page source rather than relying on browser results to update?

I was also getting some error messages pointing to a .tpl.php file or similar ...
  Topic: Setting carousel href with smarty.
anything7pob

Replies: 17
Views: 16464

PostForum: General   Posted: Fri Mar 31, 2017 11:49 am   Subject: Setting carousel href with smarty.
{foreach} loops can be nested, of course.
{section} is still a foreach() loop.
{counter} increments when used, unless you specifically tell it to not do that.
Please use

Thank you again for you ...
  Topic: Setting carousel href with smarty.
anything7pob

Replies: 17
Views: 16464

PostForum: General   Posted: Fri Mar 31, 2017 1:28 am   Subject: Setting carousel href with smarty.
Tomorrow start with a fresh slate now I understand a bit better.
  Topic: Setting carousel href with smarty.
anything7pob

Replies: 17
Views: 16464

PostForum: General   Posted: Thu Mar 30, 2017 11:19 pm   Subject: Setting carousel href with smarty.
Still haven`t managed to get it to work.

for ($x = 0, $count=count($tileArray);$x<$count;$x++){
if (array_key_exists($x,$tileArray)){
$ownerTitle=$ti ...
  Topic: Setting carousel href with smarty.
anything7pob

Replies: 17
Views: 16464

PostForum: General   Posted: Thu Mar 30, 2017 7:46 pm   Subject: Setting carousel href with smarty.
Nope, or the var_dump wouldn`t work..

{$carouselArray[tileDisplay].terracedPrice}

I need this to display as "$carouselArray0[terracedPrice]"
...
  Topic: Setting carousel href with smarty.
anything7pob

Replies: 17
Views: 16464

PostForum: General   Posted: Thu Mar 30, 2017 5:25 pm   Subject: Setting carousel href with smarty.
It my counting function!!! I think...
  Topic: Setting carousel href with smarty.
anything7pob

Replies: 17
Views: 16464

PostForum: General   Posted: Thu Mar 30, 2017 4:55 pm   Subject: Setting carousel href with smarty.
I swapped out all of the foreach loops for section loops and attempted to utilise .index as a replacement for @first.

{section name=tileDisplay loop=$tileArray}


<div id="tile ...
  Topic: Setting carousel href with smarty.
anything7pob

Replies: 17
Views: 16464

PostForum: General   Posted: Thu Mar 30, 2017 4:04 pm   Subject: Setting carousel href with smarty.
This is the code now. I swapped out the foreach for sections.
At first I had no foreach loops just nested sections, but @first didnt work on the section so I added a for each loop and now it is broke ...
  Topic: Setting carousel href with smarty.
anything7pob

Replies: 17
Views: 16464

PostForum: General   Posted: Thu Mar 30, 2017 2:19 pm   Subject: Setting carousel href with smarty.
Ahh, it seems to me that my problem was that I had nested a foreach loop within another foreach loop.

I believe that this is not possible and I instead need to use sections...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP