-
AuthorPosts
-
August 2, 2014 at 4:49 pm #200199
I was having some tries in changing the layout of the template and when I thought I was done I realized that in the middle of the page scheme there was a block without position where there was written “Block [featured-adv] not found”.
In a way or another I fixed this problem occurring only in some pages but I would like to understand what I have done and from where that message came out.
I attach two images to be clearerI read that is possible to add up to 6 new position which can be resized using the resizer bar to the left/right but I don’t see this bar in my page.
-
pavit Moderator
pavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
August 2, 2014 at 5:26 pm #544272Hi
It is difficult without an access to your website to understand what you changed
in brief you can add a position editing the layout.php file ( example: default.php) and adding a block to it .
adding a block ( footer.php ) you have this code
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12 footer-links">
<?php if ($this->checkSpotlight('footnav', 'footer-1, footer-2, footer-3, footer-4')) : ?>
<?php $this->spotlight('footnav', 'footer-1, footer-2, footer-3, footer-4') ?>
<?php endif ?>
</div>where you can manage 4 positions and edit the width of them going into Responsive Layout Tab and manually edit the width for single position
Hope was clear
Se hai dubbi puoi scrivere in Italiano
August 2, 2014 at 8:31 pm #544276Il problema è che non ho toccato nessun file, semplicemente stavo facendo delle prove visualizzando e nascondendo blocchi e modificandone la larghezza…….Tra l’altro non trovo il pulsant per aggiungere o rimuovere posizioni.
Quindi dovrei fare una ricerca dentro i file di layout di “features-adv” e poi togliere le righe di codice? Purtroppo l’ho già fatto ma senza risultati. Devo riprovare? Grazie per la gentilezza.pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
August 2, 2014 at 8:50 pm #544278Se mi dai via PM un account da super user al tuo backend posso dirti il problema dove è
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
August 2, 2014 at 9:33 pm #544282Salve
Il file default.php ha all’interno una chiamata al blocco <?php $this->loadBlock (‘featured-adv‘) ?>
per poter funzionare correttamente tale blocco deve essere aggiunto nel folder tpls/blocks/come puoi vedere dall’immagine nel folder blocks attualmente tale file non è presente
Quindi puoi copiare uno dei blocchi presenti ( in base a quello che vuoi aggiungere nella nuova posizione ) e rinominare tale file featured-adv.php, in tale modo il file di layout default.php ha il path corretto per aggiungere la nuova posizione.
se invece non vuoi tale posizione allora elimina nel file default.php questa chiamata al blocco
<?php $this->loadBlock ('featured-adv') ?>
Spero di essermi spiegato bene
-
1 user says Thank You to pavit for this useful post
August 3, 2014 at 12:29 pm #544321Grazie ha funzionato perfettamente. Se può essere utile per qualcun altro passo all’inglese.
I have two further questions: who wrote that line? Due to my little and old php knowledge I don’t dare to modify the code…
If I wanted to add a block which procedure have I to follow? There is a documentation or it is related to simple php coding?
I read that is possible to add up to 6 new position which can be resized using the resizer bar to the left/right but I don’t see this bar in my page.
Thanks again.AuthorPostsViewing 6 posts - 1 through 6 (of 6 total)This topic contains 6 replies, has 2 voices, and was last updated by robyrom 10 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum
-