Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [drupalgap]

Use it for questions about the open source application development kit for Javascript: DrupalGap.

-1
votes
1answer
42 views

I'm writing a custom module, and I am able to upload an image but unable to update image in edit

function my_custom_table_edit_form($form, &$form_state){ $id = arg(3); $result = db_query('SELECT * FROM {custom_table} WHERE id = :tid', array(':tid' => $id)); /* foreach($result as $...
0
votes
0answers
9 views

YMAL Field not available | Drupal 8.3.4 | Webform 8.x-5.0-beta25

we work with Drupal 8.4.3 and webform 8.x-5.0-beta25 but we can not use the YAML field. Do anyone know what is wrong?
0
votes
0answers
36 views

What is the best way to disable a Title field in both web app and DrupalGap7 app?

For my D7 site I used Autmatic Nodetitles module to disable my content's Title field and get it replaced it with tokens. It works fine with my web app. But when I'm emulating my DrupalGap app I can ...
-1
votes
2answers
251 views

Different front page for anonymous users and authenticated users

I have an app in Drupalgap. I would like to display a different frontpage for anonymous users and authenticated users, for example /dashboard for the first and /user_listing for the last. I have read ...
-1
votes
1answer
34 views

How do I obtain the values from the checkboxes form element?

I have put some checkboxes in my custom form. form.elements['zones'] = { title: 'Zones', type: 'checkboxes', options: { 123: '123', 456: '456', 789: '789' } }; In my form ...
0
votes
1answer
32 views

How to assign a new icon to a pager?

The current default pager in Views Paging Drupalgap is easily neglected. Can I assign it a new icon or create my own pager button? Currently, what I know is to put it at the top or the bottom ...
-1
votes
1answer
24 views

List error after second click

in my app I have a views that retrieve a list of a certain content type which links to the specific node. When I click for the first time it's ok, app brings me to the page that shows the content but ...
1
vote
1answer
70 views

how to redirect user login from other server?

The user login is from the other drupal site using cas(Central Authentication Service). Then it will lead to my main site and an authenticated user can view the contents. The main site is used ...
0
votes
1answer
44 views

How to link a custom menu to a custom button in drupalgap?

I would like to put the pop-up main_menu written in the setting.js to my custom button. It seems that the path name I use is not correct. l('Menu', 'main_menu', { attributes: { 'data-icon': 'star' } ...
0
votes
1answer
58 views

DrupalGap and Privatemsg - Link to send message not displaying

I am trying to get Privatemsg and DrupalGap working together. I have installed both modules, configured the privileges and everything is working fine in the drupal site. But with phonegap I am ...
-1
votes
2answers
140 views

How to link to a page created with views

I have a custom page that show a list of item generated by a view. These items should link to each item page that is a custom page as well created by another view and that use contextual filter (id ...
0
votes
1answer
72 views

How to assign a link or path to a button in drupalgap?

I put a navbar in the footer and placed some buttons. The display is good, but I cannot find a way to assign the link to a button like usual. The node/123 in the does not work. /** * Implements ...
0
votes
2answers
85 views

How to use grid widget in Drupalgap?

I cannot reproduce the grid widget. The page shows nothing except the title. Here is my code: /** * Implements hook_menu() */ function test_grid_menu() { var items = {}; items['test_grid'] = { ...
0
votes
1answer
69 views

Is it possible to display more than one node in a page?

I am trying to display two nodes in Drupalgap. //page_callback function tung_intro_page() { var display_page = '<body>' + '<div id="my_node_13"></div>'; display_page += '<...
0
votes
1answer
99 views

How do I use page_callback or pageshow to display an existing article, view, page, block, or a slide show?

can someone give me these examples to show an article or a block, page that already existing in a drupal website using pageshow or page_callback? I currently can only successfully showing a link of ...
0
votes
0answers
256 views

Working with flag fields

I have a Drupal 7 website which I'm writing a companion mobile app with Drupalgap. The website uses a couple of global flags, which have fields associated with them. I'm using drupalgap flag module,...
0
votes
0answers
114 views

Entity API and entity_save

I'm trying to use the Entity API to save a new Drupal node. Here's what I've done. drush shows the Entity module is enabled Jims-MacBook-Pro:modules jjb$ drush pm-info entity Extension : ...
0
votes
1answer
122 views

node_save JSON field formats

I'm having an issue where node_save() (inserting new node) ignores some fields in my JSON node. This happens with several content/widget types. I've posted this to Drupal services with no response. ...
1
vote
1answer
21 views

Why subscribe/unsubscribe button in the custom entity named group cannot appear?

I have created a custom render in group_module.js exactly as the example Rendering Entities with the exception of the line items['group/%'] = { instead of items['team/%'] = {. All other content nodes ...
0
votes
1answer
99 views

How can i fix broken link of an image being viewed in Drupalgap after being uploaded with Drupalgap also

By using Drupalgap i create an article and attach/upload an image to that article. Image of name: myimage.jpg has the actual absolute path in website: http://www.example.com/sites/default/files/...
1
vote
1answer
47 views

How can a view in DrupalGap, which is used by a custom module, NOT be cached but instead be called each and every time?

I am using a Local Task Menu as demonstrated in the docs to present one more tab named members next to View and Edit. This tab is showed only to group nodes and i have connected a custom view inside ...
0
votes
1answer
74 views

How do I check if a node is an organic group in an access callback of a custom module?

In Drupal 7 with Drupalgap, I have created a custom module in order to make a block. I have defined hook_block_info() and hook_block_view() as it is necessary. What I want is making this block visible ...
1
vote
1answer
32 views

How to alter existing page of a node that is Organic Group and add Two links above

i am using Drupal 7 with og support and also the og corresponding modules (og, entityreference, services_menu) inside DrupalGap. As can be seen from the picture i want to add some links(drawed in ...
0
votes
0answers
30 views

Send automatic mail

I would like to automatically send mail to specific users when a function is executed. Is there any way to do it with resource and service? Thank you very much.
0
votes
0answers
27 views

Handling truncated page titles

Often my page titles get cut short with "...". For example "Pickup Location" is rendered as "Pickup Locat...". And it seems like there's enough white space that more characters would have fit, ...
1
vote
1answer
516 views

Why do I get the “could not find the controller” error?

I'm trying to setup DrupalGap with Commerce following this tutorial, but I get this error: 404 not found: could not find the controller. I've manually confirmed Services are set up properly with ...
0
votes
0answers
98 views

Failed connection message on device

Have done all the steps mentioned at http://docs.drupalgap.org to create a app using drupal gap.Build works fine. But the app fails to load on device and says Failed connection message... We couldnt ...
1
vote
1answer
68 views

Is it possible to get user uid in login form submit in DrupalGap?

I have altered the login form like if (form_id == 'user_login_form') { form.submit.push('my_module_user_login_submit'); } In submit I need the uid. function my_module_user_login_submit(form, ...
0
votes
1answer
305 views

Unauthorized : CSRF validation failed issue for Logged in user

I need to hide button for Logged in user. For that I have written the following code in dashboard.js file. Code working fine for anonymous user. But not working for Logged in user. $(document).on("...
2
votes
1answer
53 views

Add content to drupalgap drop down

I have recently started working with D7. I made a test page and installed drupal gap to run it with mobile-application. I wants to assigned more nodes to the drop down menu under contents, taxonomy ...
1
vote
1answer
83 views

Audio File Field is empty (null) on drupalgap app

What i want to do is create/view podcast node type inside DrupalGap App in Android. I am using drupal 7 on Centos 7. drupal module: audiofield (https://www.drupal.org/project/audiofield) drupalgap ...
1
vote
0answers
34 views

Create a module and connect API [closed]

Hello I am new to drupal 7, I want to create an module where I use and connect an API to my website. Any help from where to start?
3
votes
3answers
185 views

Drupalgap: Hello World sample - where is app folder?

I have a Drupal 7 website and wish to develop a mobile app for it. I have successfully installed Drupalgap. I am trying to run the Hello World sample app described in the Drupalgap 7 docs. The ...
0
votes
1answer
103 views

Proper URI path for views render array

I'm fairly new to Drupal and Drupalgap. My Drupal site has a view/content called "donations". In admin/structure/views, there are two PATHs: /current-donations and /available-donations. And of ...
3
votes
1answer
183 views

Programatically change user field (entity reference) in drupalgap with user_save()?

We are using DrupalGap to make an app. We have nodes (content type chargingstations) which we want our users to be able to "check" into by pressing a button. Until now I have created a button on the ...
3
votes
0answers
61 views

Tips to move existing angular + cordova to drupal gap?

I have created a mobile app using cordova and angular framework which is in production already. Now I am planning to switch to DrupalGap with my existing angular application. I think support for ...
1
vote
2answers
127 views

drupalgap webapp setup into subdomain

My main website is www.example.com. And I have 3 types content like: book,food,tutorial. Now I want to serve all Book item from book.example.com subdomain. Is it possible to develop it with drupalgap ...
1
vote
1answer
226 views

How to create custom forms to filter views results in Drupalgap

I want to build a views page where user searches for a text (without auto-complete) by entering query in a text box and clicking a button on drupalgap, and I want to have flag links on the results On ...
0
votes
1answer
132 views

Unable to retrieve node content with drupalgap

I've set up drupalgap on my website, followed all the instructions and got the Hello World example up and running via Ripple. I've also been able to adapt that example to put a new logo and different ...
1
vote
1answer
97 views

DrupalGap index.html No connection found on ios simulator

The app is working on web-app, but when I test iPhone" simulator, then have problems with connection: index.html - No connection found Failed connection http://app.newwweb.info Check your device's ...
1
vote
0answers
39 views

entity_privatemsg_message

Working on a Android APP to read/reply private message (Drupal 7). I am able to access all secure information for a user. Services/Resources> works file. shows the entities But I am facing some ...
1
vote
0answers
126 views

Drupalgap android app using quiz module

I am trying to create a Drupal 7 quiz site of multiple choice questions. The users should be able to attempt quiz on the desktop site and as well as on an android app developed using Drupalgap module. ...
1
vote
0answers
338 views

How do I play Vimeo videos using video embed?

The drupalgap video embed field plays youtube videos https://github.com/signalpoint/video_embed_field/blob/7.x-1.x/video_embed_field.js: $.each(items, function(delta, item) { var src = item....
0
votes
0answers
71 views

DrupalGap query string not work

I want add query string to node page like http://www.example.com/mapp/index.html#node_136942 var attributes= new Array(); var variables =new Object(); attributes['class']='...
1
vote
0answers
85 views

Issue during Checkout process with DrupalGap Commerce

I'm trying to build an app with DurpalGap and his commerce module for my ECommerce website. I've followed your tutorial but I still have some errors (all DPM are activated) : The first page I made ...
-1
votes
1answer
109 views

View with arguments

Can I build a view with parameters for the app? for example: articles by author and articles that WILL show only the registered user .. Is there an example of module done or I have to build only sight ...
2
votes
2answers
125 views

Config for using PUT with Services Module

I'm integrating DrupalGap with Drupal 7 and Services module. Issue I'm running into is that all PUT requests are returned as 405 Method Not Allowed. For example: GET http://example.com/?q=drupalgap/...
0
votes
1answer
112 views

How do I add JS libraries in DrupalGap

I am hoping to add Slick Library within my DrupalGap but when I try to use it, I am unable to. The library is added normally within index.html but when one my node page (which has the HTML in it) ...
0
votes
0answers
207 views

How to setup an existing page as Home Page in Drupal Gap

I have an existing home page (node:home_page) that I want Drupal Gap to use as front page. Is it possible? I tried this, but it doesn't work. drupalgap.settings.front = 'home_2';
1
vote
1answer
150 views

DrupalGap Frontpage not displaying

I am following the drupalgap hello world creation tutorial, however all i tried to make the hello world proven to be unsucessful. here is the frontpage config fron settings.js i did the ...