page list url in the block

Permalink Browser Info Environment
I've taken your concept (which was very helpful and fantastic) and built a little something of my own. In my block, I want to link to the page it belongs to, but when I do this in the block...

$page = Page::getCurrentPage();
$url = $nh->getLinkToCollection($page);

I get the link to the page the page list is on instead. Do you happen to know how to link to the page the block came from?

Type: Discussion
Status: New
jbsmith969
View Replies:

concrete5 Environment Information

# concrete5 Version
5.6.2.1

# concrete5 Packages
Add Multiple Pages (2.1.1), Advanced Forms (1.11.5), Dealer Locator (1.5), Designer Content (3.1.1), Designer Content Pro (1.0), FlexSlider (2.2.0.2), Google Map (Premium) (2.1), Iframe (1.0), JSON Creator (0.3.7), Page List Teasers (1.2), Page Redirect (1.4), Page Selector Attribute (1.1), Pro Blog (12.4.4), Simple Blog (4.2.1), Social Feed (1.6.4), Thumbnail Slider (0.9.1), Vegas (0.0.6), Whale Folio (1.0.0).

# concrete5 Overrides
blocks/product_boxes, blocks/media_thumbnail, blocks/dcp_select_filter, blocks/dcp_button_country_specific, blocks/product_specs, blocks/product_link_button, blocks/dcp_dealer_international, blocks/page_list, blocks/dcp_find_dealer, blocks/autonav, blocks/dcp_product_feature_icons, blocks/ext_button_exclude_option, blocks/dcp_tt, blocks/news_boxes, blocks/tags, blocks/products_header, blocks/dcp_country_button, blocks/product_page_button, blocks/dcp_two_column_block, blocks/product_details, blocks/product_links, blocks/product_features, blocks/dcp_product_detail_overview, blocks/pdb_thumbnail, blocks/dcp_product_line, blocks/search, blocks/promo_boxes, blocks/dcp_video, blocks/dcp_product_specs, js/jquery-cookie-master, js/flip, single_pages/dashboard, single_pages/page_not_found.php, themes/bw, themes/pdb, tools/sixeightforms

# Server Software
Apache/2.2.22

# Server API
cgi-fcgi

# PHP Version
5.3.29

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, json, ldap, libxml, mbstring, mcrypt, mhash, mysql, mysqli, openssl, pcre, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, Reflection, session, SimpleXML, soap, sockets, SPL, SQLite, sqlite3, standard, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib.

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.