10 years ago
5
Topic
Hi, I am slowly losing my hair with Seblod, I get a problem, spend hours looking through old post for Seblod2 to try to find an answer then eventually figure it out so I continue hoping it will all become easier eventually.

Anyway my problem is that I have a working form which when I use Seb_one displays OK in front end but has too many nested divs. When I try to use Barebones template or Simplesimon using getValue (‘field_name’) ?>, getName (‘field_name’) ?> or any other call to the database displays nothing at all (i used the correct field_name).
I know the template set up is correct as I have created a menu link to a single article and placed a random <h1>testing</h1> into both templates to test and it shows up fine in the front but i just dont see the seblod fields.

I followed this tutorial by James Morell to the letter to set up the SimpleSimon template http://www.youtube.com/watch?v=DPMnAbi1-8w http://www.youtube.com/watch?v=DPMnAbi1-8w

Please help
Get a Book for SEBLOD
10 years ago
1
Level 1
Hi MarcT,

I advise you to use "seb minima" template for your case.

Regards,
Mehdi.
10 years ago
0
Level 2
Thanks, i'll try that now.
52 Posts
melihtas
10 years ago
0
Level 1
Hi, have you tried this format, be sure your php tags and semicolon are in place.

<?php echo $cck->get('field_name')->label;  ?>
<?php echo $cck->get('field_name')->value;  ?>




10 years ago
1
Level 1
Thank you both for your advise. Using Minima did help but the problem was not the template. There were two reasons it wasn't working. The first is very annoying, i was using the wrong ' ' in the field name part of <code><?php getName (‘field_name’) ?></code> thanks to copy and paste.
Secondly and probably more importantly in the temporary menu item i had set up to a single article the intro text was set to hidden in settings. oops!
10 years ago
0
Level 2
MarcT,

Normally, you don't need to modify the code of seblod template. You can have what you want by defining a custom variation.
If your problem is solved, please mark this thread as solved.

Regards,
Mehdi.
Get a Book for SEBLOD