mesuva / multi_page_selector_attribute Goto Github PK
View Code? Open in Web Editor NEWA concrete5.7 attribute type that allows the selection of pages
A concrete5.7 attribute type that allows the selection of pages
Trying to fetch the pages on a page, but getting the error: Cannot use object of type Concrete\Core\Page\Page as array
Using this code:
products = $c->getAttribute('products', 'pageLinkArray');
if (!empty($products)) {
echo '<ul>';
foreach($products as $prod) {
echo '<li><a href="' . $prod['url'] . '">'. $prod['name']. '</a></li>';
}
echo '</ul>';
}
This version seems to nearly work with Concrete CMS Version 9 and PHP 8 but while selections can be saved they then don't repopulate the selector when the Composer form is opened again.
Cannot use this attribute in single page mode.
Argument 4 passed to Concrete\Core\Form\Service\Widget\PageSelector::selectFromSitemap() must be an instance of Concrete\Core\Entity\Site\SiteTree, array given, called in /packages/multi_page_selector_attribute/attributes/multi_page_selector/controller.php on line 72
Hi Mesuva,
I need to add this attribute programmatically, how can it be done?
What should I pass in setAttribute()
?
Cheers,
hi
i've try to install on v8.2 an work if used as page attribute (but not with raw function).
I've try to use it on an express object but have this error
`Exception Occurred: /concrete/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:131 An exception occurred while executing 'UPDATE CantanteExpressSearchIndexAttributes SET ak_can_link = ? WHERE exEntryID = ?' with params [{"siteTree":null,"cID":"169","error":false,"pkgID":"0","cPointerID":"0","cIsActive":"1","cFilename":null,"ptID":"7","cDisplayOrder":"12","cInheritPermissionsFrom":"PARENT","cOverrideTemplatePermissions":"1","cCheckedOutUID":null,"cIsTemplate":"0","uID":"1","cPath":"/fabri-fibra","cParentID":"1","cChildren":"0","cCacheFullPageContent":"-1","cCacheFullPageContentOverrideLifetime":"0","cCacheFullPageContentLifetimeCustom":"0"}, 4]:
Object of class Concrete\Core\Page\Page could not be converted to string (0)`
any ideas for solve this problem ?
If is possible without rewrite all the code.
thanks
Right now the selected pages are saved using a comma separated string. That's okay in a lot of situations, but when we want to reverse the whole things, it becomes a bit of a pain.
I basically don't want to see the selected pages, but the pages where the current page has been selected.
I'd like to have another table with basically avID
and cID
so that we can search for both sides using a SQL query.
What are your thoughts about this?
Hello, I updated from 8.5.12 to 9.1.3 the updates was successfully, but you can not use the attribute anymore. If you you use the attribute in composer, the system do not remeber the value. Also the restrictions are not working. Is there any possibilty to fix that? I need this attribute for a project and it is very important to me :) I can also pay you for fixing! Thank you very much in advance! Georg
An exception occurred while executing 'DELETE FROM AttributeKeys WHERE akID = ?' with params [99]: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (concrete5-8.4.0
.atemptysettings
, CONSTRAINT FK_ED1BF189B6561A7E
FOREIGN KEY (akID
) REFERENCES attributekeys
(akID
))
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.