PrestaShop Forum

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum

Jump to content

[MODULE] blocklink + blockfooterlink - Sortable links + CMS links

36 replies to this topic
#1
Hessellund

    PrestaShop Apprentice

  • Members
  • PipPip
  • 100 posts
Hi all,

I just updated the blocklink module!

New feature:
* Add link to CMS page.
* Links sortable

Overall features:
* Add various links
** Different languages.
* Add link to CMS page
** Link name controlled by blocklink module
* Control "Open in new window"
* Control the title of the blocklink block for each enabled language.
* Posible to sort the links individually.

blocklink adds a block to the left or right column.
blockfooter adds links to footer!

UPDATED:
* Small bugfixes
* Added Screenshots

Attached Files



#2
Hessellund

    PrestaShop Apprentice

  • Members
  • PipPip
  • 100 posts
I added this css-style to global.css:
#footer .blockfooterlinks li.first_item {
list-style-type: none;
border: none;
}
#footer .blockfooterlinks li {
display: inline;
border-left: 1px solid #0000a0;
margin: 0 5px 0 -10px;
padding: 0 5px;
}
#footer .blockfooterlinks {
margin-bottom: 3px;
}


#3
Hessellund

    PrestaShop Apprentice

  • Members
  • PipPip
  • 100 posts
Now it's posible to sort the links in any order!

First post updated!

#4
San Diego

    PrestaShop Apprentice

  • Members
  • PipPip
  • 407 posts
hi
cool
thanks for sharing
many people ask for that.

sd

#5
bald43

    PrestaShop Newbie

  • Members
  • Pip
  • 16 posts
Are there instructions on how to use this module? Can you link one CMS page to another?

Thanks

Keith
Supplyboyz
Discount Ink and Toner
http://www.supplyboyz.com/

#6
jeckyl

    PrestaShop Legend

  • Freelance agréé
  • 10481 posts
Hi,

Anyone have a demo ?

or some pix ?
PrestatoolBox, la boite à outil pour Prestashop (Modules, Templates, Services)

Prestatools, l'annuaire des contributions

#7
Hessellund

    PrestaShop Apprentice

  • Members
  • PipPip
  • 100 posts
Just updated...

Small bugfixes... and screenshots.

You cannot link CMS pages to another.

Module adds blocks to left or right column / or footer, with links of choice.

#8
Mmops

    PrestaShop Newbie

  • Members
  • Pip
  • 23 posts
Hi

I changed CSS file and upload the footlink folder, but it didnt show as your image in Module, any idea?

Thanks
Sean

Attached Files

  • Attached File  2.jpg   6bytes   6723 downloads
  • Attached File  3.jpg   34bytes   7085 downloads


#9
Mmops

    PrestaShop Newbie

  • Members
  • Pip
  • 23 posts
I feel so stupid, sorry I look at the wrong module, great module

Thanks
Sean

#10
kiwiacw

    PrestaShop Apprentice

  • Members
  • PipPip
  • 46 posts
Hi..we have linked CMS pages on our latest cart in a couple of ways

The first https://www.egmontse...ms.php?id_cms=6
see the next / previous/ page number at top linking to other CMS pages (only the first is listed in the links block)

The second way https://www.egmontse...s.php?id_cms=14
Has buttons at the top linking to other cms pages in this set
http://www.candycorner.co.nz
www.egmontseeds.co.nz
www.xplosivfightwear.co.nz

#11
dulux

    PrestaShop Apprentice

  • Members
  • PipPip
  • 68 posts
hi kiwiac how you made that? thanks

#12
kiwiacw

    PrestaShop Apprentice

  • Members
  • PipPip
  • 46 posts
Both options were done using html and using buttons we created. I'll organise a copy of the html code and post it here for anyone interested.

You need to create the cms pages first so you have url links to enter into the html code. Only the first cms page would be listed on your link block, it then links to the others
http://www.candycorner.co.nz
www.egmontseeds.co.nz
www.xplosivfightwear.co.nz

#13
kiwiacw

    PrestaShop Apprentice

  • Members
  • PipPip
  • 46 posts
Here's the html for the first one which has the nex/previous/page numbers

You need to change the code to suit each page so that the links are correct and not just a repeat of the first page. With the image for the page number buttons we also changed the colour for each cms page to show it had moved to another one. Time consuming but an effective result as it blends with the look of the rest of the cart.

You will be able to work out from this example how we did the second as it's just buttons with hyperlinks in the html code, we designed the buttons to match the category header bars and therefore they also blend in.

Attached Files


http://www.candycorner.co.nz
www.egmontseeds.co.nz
www.xplosivfightwear.co.nz

#14
dulux

    PrestaShop Apprentice

  • Members
  • PipPip
  • 68 posts
Thanks a lot, kiwiacw

#15
nimuravka

    PrestaShop Newbie

  • Members
  • Pip
  • 10 posts
hi!
is it possible to add not just links to block but create several new blocks and fill them with different links?
Thank you!

#16
Hessellund

    PrestaShop Apprentice

  • Members
  • PipPip
  • 100 posts
Not without modifications to the module.

The easy workaround would be to copy the module into blocklink2, blocklink3 etc. You'll have to rename the blocklink.php to blocklink2.php etc, and also the class name.
Further you might have to edit the Configuration::get and ::update parameters to accordingly. And don't forget to edit the tablename in the database!

So lots of renaming and you will be up running.

#17
nimuravka

    PrestaShop Newbie

  • Members
  • Pip
  • 10 posts
thank you!!
and maybe you have an idea how to make this module appear on exact category pages and products under this category?

say... i have 2 same modules with different links and I'd like to have one module displayed in category 1 and second in category 2 only?

#18
Hessellund

    PrestaShop Apprentice

  • Members
  • PipPip
  • 100 posts
Sorry, I'm not sure how to accomplish that one....

You must somehow check which category is currently viewed. It is properly doable, put it is propoerly not very flexible!

#19
tvx.cz

    PrestaShop Newbie

  • Members
  • Pip
  • 2 posts
Hi, I tried this module with Prestashop Version 1.2.1.0
Found errors:
1. The presentation does not show links, only empty html code
2. In admin updating saved link does, not work (Firefox 3.5.2 with firebug) (does not work with earlier versions ether.)

The first thing i repaired, I don't understand smarty but tried to handle it like php and it worked for me.

i adressed fields like:
$blocklink_link[$langurl]
$blocklink_link[$langtext]

instead of
$blocklink_link.$langurl
$blocklink_link.$langtext

The part 2 iam not able to repair.

#20
zenco

    PrestaShop Newbie

  • Members
  • Pip
  • 8 posts
gonna use it thank you!!! :)