TOPIC:

Artikel-Veröffentlichungsdatum setzen / Article publication date record 2 years 5 months ago #220111

  • adlerauge1980's Avatar Topic Author
  • adlerauge1980
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 34
  • Thanks: 0
Lieber support

Ich habe BF welches den Eintrag an CB weitergibt. CB erstellt mir dann einen Artikel.
Ich möchte nun den Artikel so erstellen dass das Veröffentlichungsdatum von einem Datumfeld -24h generiert wird. Wie kann ich sowas bauen?
Es wäre auch ok wenn BF den artikel direkt erstellt und nicht CB.

Dear support

I have BF which passes the entry to CB. CB then creates an article for me.
I would now like to create the article so that the publication date is generated by a date field -24h. How can I build something like that?
It would be ok if BF created the article directly and not CB.
Verwende folgende Systeme / Komponenten in jeweils der aktuellsten Version:
- Joomla
- Breezingforms
- ContentBuilder

Please Log in or Create an account to join the conversation.

Artikel-Veröffentlichungsdatum setzen / Article publication date record 2 years 5 months ago #220325

  • JulianGracin's Avatar
  • JulianGracin
  • Offline
  • Developer
  • Developer
  • Posts: 673
  • Karma: 33
  • Thanks: 66
Hi,

Unfortunately, the article creation date cannot be influenced by the fields in the form you are using. I'm sorry, but you can't do something like that. If you want, you can ask GWS desk , our official partner for developing custom solutions. Perhaps they can help you in that matter.

The Content Builder is a component used for creating articles, not the Breezing Forms. You can integrate Breezing Forms with Content Builder, but BF can't create any articles.


Regards,
Julian
=========================================
Need to renew Pro Support?
Buy Here!
=========================================
Satisfied?
Consider a membership!
=========================================
Like us on Facebook
=========================================
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!

Please Log in or Create an account to join the conversation.

Artikel-Veröffentlichungsdatum setzen / Article publication date record 2 years 5 months ago #220859

  • adlerauge1980's Avatar Topic Author
  • adlerauge1980
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 34
  • Thanks: 0
Dear Julian

These are not very constructive news
but I think i have found a way.
I can influence it with a script in the database!
is there a way that I can run a script after creating the article through CB?

Thanks for your helps!

Grüsse

Roger
Verwende folgende Systeme / Komponenten in jeweils der aktuellsten Version:
- Joomla
- Breezingforms
- ContentBuilder

Please Log in or Create an account to join the conversation.

Artikel-Veröffentlichungsdatum setzen / Article publication date record 2 years 5 months ago #220923

  • JulianGracin's Avatar
  • JulianGracin
  • Offline
  • Developer
  • Developer
  • Posts: 673
  • Karma: 33
  • Thanks: 66
Hi,

You could do something like that using the form you have created for that view. I guess you could do it in the After Submit piece, but it all depends on the script you are going to use.


Regards,
Julian
=========================================
Need to renew Pro Support?
Buy Here!
=========================================
Satisfied?
Consider a membership!
=========================================
Like us on Facebook
=========================================
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
The following user(s) said Thank You: adlerauge1980

Please Log in or Create an account to join the conversation.

Artikel-Veröffentlichungsdatum setzen / Article publication date record 2 years 5 months ago #221305

  • adlerauge1980's Avatar Topic Author
  • adlerauge1980
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 34
  • Thanks: 0
Hi Support

Now i have created my Querry. when I run it in the mysql database it works fine.
But if it integrated at BF i have now result.

I inserted the querry at: Form -> Advanced -> More options -> Submit Pieces -> End Submit (Type: Custom)

This it's my querry in this Field:
$db = JFactory::getDBO();//Get Database Object

//Untenstehendes Querry ändert das Veröffentlichsdatum auf "Jagdtag" 16:00 minus 1 Tag und setzt den Artikel auf "Veröffentlicht"
$db->setQuery('UPDATE `jos_content`
SET `state`= 1,
`publish_up`= DATE_SUB(DATE_FORMAT(STR_TO_DATE( RIGHT(title,10), '%d-%m-%Y'), '%Y-%m-%d 16:00:00'), INTERVAL 1 DAY)

WHERE ID = 48
AND `state`= 0
AND SLEEP(1)')


The querry make follow:
- wait 1 sec. after send form entry (thats the system have time to create the Joomla Article
- update the publish-up Field with the date from the Article-title (last 10 it's always the Date), and change this bevor in the correct format.
(Article it's dd-mm-yyyy the publish-up field nead yyyy-mm-dd 16:00:00)
- Set the State to "1" (Published)
- Controlling thats this querry only run, if is the state bevore start "0" (not Published)

Where ID = 48 it's for the testing. There i need the Indicator BF-Article, so thats the Querry only update the Field from this new BF entry.

Can you me help what's it's the problem?

Thanks

greetings from Switzerland
Roger
Verwende folgende Systeme / Komponenten in jeweils der aktuellsten Version:
- Joomla
- Breezingforms
- ContentBuilder

Please Log in or Create an account to join the conversation.

Artikel-Veröffentlichungsdatum setzen / Article publication date record 2 years 5 months ago #221315

  • JulianGracin's Avatar
  • JulianGracin
  • Offline
  • Developer
  • Developer
  • Posts: 673
  • Karma: 33
  • Thanks: 66
Hi,

Just a quick question, about your Sleep for 1 second time. Have you tested it without setting the sleep time?


Regards,
Julian
=========================================
Need to renew Pro Support?
Buy Here!
=========================================
Satisfied?
Consider a membership!
=========================================
Like us on Facebook
=========================================
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!

Please Log in or Create an account to join the conversation.

Moderators: ForumSupport
Time to create page: 0.053 seconds

Summer Sale!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!