How can we stop publishing of a structure group with help eventing? - tridion

I want to stop publishing of structure group with the help of eventing? Please share some code.

If what you want is to stop users publishing Structure Groups (or Publications) from the GUI then maybe you could use a GUI extension. Jaime Santos has a great post on Hiding commands in the GUI:
http://jaimesantosalcon.blogspot.com/2011/10/2011-sdl-tridion-gui-extensions.html

Can I suggest that you open the Structure Group properties page, and just un-check the "Publishable" check box? Or is there another reason you want to achieve this with an event?

You really need to elaborate your questions. I don't know what exactly you want to do, but I suspect that you want to remove the possibility to publish entire structure groups?
If you want to remove items to be published you need to write a Structure Group Resolver that does this for you.
When you elaborated your question I can share some relevant code.

We have done this by using GUI extensions.

Related

Single use Firebase Dynamic Link

I am trying to add a dynamic link to a Flutter app but I need this link to work only once when generated as this will be a sharing option that might contain data I do not want to be lingering around for long after. I have been trying to find any docs on how to do this but have not been able to find anything that explains how to do this.
Is there any way to generate this single use link? Or does anyone have any recommendations on a way to implement this? Making sure a link gets used once and only once?

Why if you create a project from dotnetCLI doesnt add to source control?

Good day to all,
I´ll explain the "problem":
Imagine this case:
You open VisualStudio and then from the IDE I choose a template and then create it, when its created then you can without problem add that solution to the source control, there´s no problem like this:
But if you create the project template from the CLI, like this:
Then you cannot just add that solution to the source control, just simply does´nt add.
And due to this, it will display the typical error:
How I can fix this? I dont really find to much info pointing to this problem.
Thank you very much as usually.
Create a .gitignore file and add the .vs folder
Follow this similar question

How to implement accessing a website with access code in Meteor

Suppose I have a website written in Meteor. Now I only want selected people to visit my website. Like Eventbrite's private event, only invited people can access by inputting access code.
Just curious whether there is such a feature available in Meteor. If not, could someone point me to some resource on how to proceed?
More on this:
Suppose I want to access www.a.com. In order to access its contents, I need input an access code. Otherwise, I can only see a dialog to ask me to input code.
Is this clear?
Thanks
Derek
no, there is nothing like this. i needed something like that and ended up writing it myself.

Drupal form - Popup

I would like to show some forms in my Drupal Website in a popup or accordion. I have tried popup module but it shows only for viewing nodes and not adding/editing. How can I do that?
Thanks for your help
This can be done with https://drupal.org/project/popup_forms, but you need to do some programming in order to apply it (i.e. it can't be just configured via admin interface).
maybe this module help you Modal forms
In my personal opinion Popups API is a very good module.You could show the necessary contents that suites your purpose .It is quite easy to use.I think you just need to read the documentation.If you really change this module there are other modules available like Modal forms,Modal Frame API,colorbox, Chaos tool suite etc.You can find a lot of modules needed for your purpose. The following links might help you:
https://drupal.org/project/colorbox
https://drupal.org/project/modal_forms
https://drupal.org/project/modalframe

Daily question in my drupal website

I am new to drupal so may be my question will be very dumb.
I want to show daily questions on my website which is build using drupal. The question is of multiple choice and the options should be displayed by default. The visitor will simply click on the ans and press submit to ans. It seems to be like a poll but i dont want to show the summary on submission instead i want to show the correct ans.
Thanks in advance :)
The Quiz module provides, well, quizzes and supports multi-choice questions. After a quiz has been fully answered, it provides various display option. It may suits your need if you use single-question quizzes.
For the quiz to be daily, you may have to add some code or use additional module to handle automatic creation, publication and de-publication of your daily quizzes.
I don't know of any module that will do this out of the box, but the built-in, core module "poll" will do something terribly close.
To get the exact functionality you desire, you could simply override the template files for poll to make it so that it does not display the results upon submission. Then you could make a comment on the poll that contains the correct answer. (You can do this without allowing others the ability to comment.) This would effectively meet the given requirements.
Anyway I know its not a perfect solution, but it would give you the described requirements without too much work.

Resources