Comments (6)
Hello, please put a d_custom_init
module in your droopler_project starterkit and use the following code:
/**
* Alter content structure.
* Implements hook_content_structure_alter()
*
* @param $structure
* The array with structure.
*
* @param $context
* Which structure array is this?
*/
function d_custom_init_content_structure_alter(&$structure, $context) {
$structure = [];
}
The installation process will run this hook and remove all demo nodes.
from droopler.
BTW I am refeering to droopler_project
from droopler.
Perfect. Thanks a lot for your prompt response.
from droopler.
d_custom_init worked. Is there anyway I can remove blogs examples. In the module d_blog module this is what I did to get rid of them. Is there any elegant way of doing it please?
- Altered Function below
*function d_blog_init_content_structure_alter(&$structure, $context) {
-
$path = drupal_get_path('module', 'd_blog_init') . '/pages';
-
if ($context == 'all') {
-
$structure['blog_post_1'] = ['file' => "$path/post_1.yml"];
-
$structure['blog_post_2'] = ['file' => "$path/post_2.yml"];
-
$structure['blog_post_3'] = ['file' => "$path/post_3.yml"];
-
$structure['blog_post_4'] = ['file' => "$path/post_4.yml"];
-
$structure['blog_post_5'] = ['file' => "$path/post_5.yml"];
-
}
*}
*/
function d_blog_init_content_structure_alter(&$structure, $context) {
$path = drupal_get_path('module', 'd_blog_init') . '/pages';
if ($context == 'all') {
}
}
from droopler.
@grzegorz-pietrzak-droptica did not work. I had to manually delete content.
from droopler.
@ugintl In 2.2 version there will be a functionality to choose demo content, https://www.drupal.org/project/droopler/issues/3155114
from droopler.
Related Issues (20)
- d_social_media form links not being saved. HOT 2
- No web folder created when installing droopler HOT 4
- ReferenceError: primordials is not defined when compiling SCSS HOT 8
- Mega menu produces capitalize items which is not good is many countries HOT 2
- droopler_theme js and css are gitignored? HOT 1
- Missing bundle entity, entity type contact_form, entity id feedback. HOT 1
- Cannot access revisions HOT 5
- Button "close filters" on mobile view not works HOT 1
- Bump geysir to the latest dev version to apply bug fixes. HOT 1
- Close area does not go away on screen resize HOT 3
- Guidance on changing both the link and title from Blog to Insights HOT 1
- [gulp] changes are not visible until I do "Flush all caches" HOT 2
- Overwritting content & menus HOT 3
- [FR] Exported Droopler configuration cannot be moved/used for re/installation HOT 3
- CSS is not loaded, droopler 3 HOT 2
- Error when installing profile: Modules required but not found HOT 1
- Unable to install on Drupal 9 as a profile HOT 5
- Reference content display HOT 2
- Drupal\Core\Database\InvalidQueryException: Query condition 'nfd.nid IN ()' cannot be empty HOT 1
- Transition from drupal 9.3 to 9.5.10 and mysql 5.7 to 8.1 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from droopler.