PrestaShop Forums: [MODULE] blocklink + blockfooterlink - Sortable links + CMS links - PrestaShop Forums

Jump to content


Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.

Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

NYC

Vous parlez français ? par ici !


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


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

#1 Hessellund

    PrestaShop Apprentice

  • 24 May 2009
  • Members
  • PipPip
  • 98 posts

Posted 08 July 2009 - 06:29 AM

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 File(s)



#2 Hessellund

    PrestaShop Apprentice

  • 24 May 2009
  • Members
  • PipPip
  • 98 posts

Posted 08 July 2009 - 06:34 AM

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

  • 24 May 2009
  • Members
  • PipPip
  • 98 posts

Posted 09 July 2009 - 11:33 AM

Now it's posible to sort the links in any order!

First post updated!

#4 San Diego

    PrestaShop Apprentice

  • 15 Apr 2009
  • Members
  • PipPip
  • 407 posts

Posted 09 July 2009 - 12:13 PM

hi
cool
thanks for sharing
many people ask for that.

sd

#5 bald43

    PrestaShop Newbie

  • 18 Feb 2009
  • Members
  • Pip
  • 16 posts

Posted 07 August 2009 - 12:50 PM

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 Superstar

  • 08 Jan 2008
  • Freelance agréé
  • 10096 posts
  • Location:La Rochelle, France

Posted 14 August 2009 - 08:28 PM

Hi,

Anyone have a demo ?

or some pix ?
Image IPB
réalisé par l'agence Internet Mediacom87

#7 Hessellund

    PrestaShop Apprentice

  • 24 May 2009
  • Members
  • PipPip
  • 98 posts

Posted 17 August 2009 - 07:51 PM

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

  • 17 Aug 2009
  • Members
  • Pip
  • 23 posts

Posted 17 August 2009 - 11:19 PM

Hi

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

Thanks
Sean

Attached File(s)

  • Attached File  2.jpg (6bytes)
    Number of downloads: 6705
  • Attached File  3.jpg (34bytes)
    Number of downloads: 7065


#9 Mmops

    PrestaShop Newbie

  • 17 Aug 2009
  • Members
  • Pip
  • 23 posts

Posted 17 August 2009 - 11:31 PM

I feel so stupid, sorry I look at the wrong module, great module

Thanks
Sean

#10 kiwiacw

    PrestaShop Apprentice

  • 18 Aug 2008
  • Members
  • PipPip
  • 44 posts

Posted 17 August 2009 - 11:54 PM

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

  • 30 Jul 2009
  • Members
  • PipPip
  • 68 posts

Posted 18 August 2009 - 01:23 AM

hi kiwiac how you made that? thanks

#12 kiwiacw

    PrestaShop Apprentice

  • 18 Aug 2008
  • Members
  • PipPip
  • 44 posts

Posted 18 August 2009 - 03:57 AM

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

  • 18 Aug 2008
  • Members
  • PipPip
  • 44 posts

Posted 18 August 2009 - 04:12 AM

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 File(s)


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

#14 dulux

    PrestaShop Apprentice

  • 30 Jul 2009
  • Members
  • PipPip
  • 68 posts

Posted 18 August 2009 - 05:24 AM

Thanks a lot, kiwiacw

#15 nimuravka

    PrestaShop Newbie

  • 14 Jul 2009
  • Members
  • Pip
  • 10 posts

Posted 26 August 2009 - 06:11 PM

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

  • 24 May 2009
  • Members
  • PipPip
  • 98 posts

Posted 27 August 2009 - 04:13 AM

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

  • 14 Jul 2009
  • Members
  • Pip
  • 10 posts

Posted 27 August 2009 - 08:21 AM

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

  • 24 May 2009
  • Members
  • PipPip
  • 98 posts

Posted 27 August 2009 - 05:35 PM

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

  • 14 Jul 2008
  • Members
  • Pip
  • 2 posts

Posted 03 September 2009 - 10:17 AM

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

  • 31 Aug 2009
  • Members
  • Pip
  • 8 posts

Posted 03 September 2009 - 05:20 PM

gonna use it thank you!!! :)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users