Open a file when click on article
- Posted by TemplatePlazza (5260) Offline
have you changed all <a> tags? I think there a multiple <a> tags depends on condition
2 years 2 months ago #13
by TemplatePlazza
The topic has been marked as resolved.
- Posted by Luca (22) Offline
I believe I have replaced all occurrences
I don't think I can attach a PHP file to show you the code
2 years 2 months ago #14
by Luca
I don't think I can attach a PHP file to show you the code
The topic has been marked as resolved.
- Posted by TemplatePlazza (5260) Offline
Hmm can you try to change
<?php if($item->urls) { ?>target ="_blank" <?php } ?>
to
<?php if($item->urls !== "") { ?>target ="_blank" <?php } ?>
2 years 2 months ago #15
by TemplatePlazza
<?php if($item->urls) { ?>target ="_blank" <?php } ?>
to
<?php if($item->urls !== "") { ?>target ="_blank" <?php } ?>
The topic has been marked as resolved.
- Posted by Luca (22) Offline
the operation has not changed.
it seems that inside the loop foreach the "$item-> urls" object is always set
2 years 2 months ago #16
by Luca
it seems that inside the loop foreach the "$item-> urls" object is always set
The topic has been marked as resolved.
- Posted by Luca (22) Offline
Hello,
the variable "$item->urls" is never empty, if no URL is specified, the variable contains the following sequence
{"scream": "", "urlatext": "", "targeta": "", "urlb": "", "urlbtext": "", "targetb": "", "urlc": "", "urlctext": "", "targetc": ""}
I solved it by using "$urls->urla" instead of "$item->urls"
thank you so much for all your patience and assistance
2 years 2 months ago #17
by Luca
the variable "$item->urls" is never empty, if no URL is specified, the variable contains the following sequence
{"scream": "", "urlatext": "", "targeta": "", "urlb": "", "urlbtext": "", "targetb": "", "urlc": "", "urlctext": "", "targetc": ""}
I solved it by using "$urls->urla" instead of "$item->urls"
thank you so much for all your patience and assistance
The topic has been marked as resolved.