Add page collection attribute method snippets#118
Conversation
- Add c5getcollectionid snippet - Add c5getcollectionname snippet - Add c5getcollectiondescription snippet - Add c5getcollectionpath snippet - Add c5getcollectionlink snippet Resolves #37
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||||||
PR Code Suggestions ✨Latest suggestions up to b48d5a2
Previous suggestionsSuggestions up to commit b48d5a2
|
|||||||||||||||||||||
User description
Description
Adds five new code snippets for accessing page/collection attribute methods in Concrete5.
Changes
c5getcollectionid- Get the collection IDc5getcollectionname- Get the collection namec5getcollectiondescription- Get the collection descriptionc5getcollectionpath- Get the collection pathc5getcollectionlink- Get the collection linkRelated Issues
Closes #37
Snippets Preview
Each snippet provides quick access to commonly used Concrete5 page/collection methods:
$this->cand$cobject references via togglePR Type
Enhancement
Description
Add five new Concrete5 collection attribute method snippets
Enable quick access to collection ID, name, description, path, link
Support flexible object reference via
$this->cor$ctoggleFollow existing snippet patterns for consistency
Diagram Walkthrough
File Walkthrough
php.json
Add five collection attribute method snippetssnippets/php.json
path, and link
${1|$this->c,$c|}toggle syntax
prefixes